[*] 日常优化

This commit is contained in:
acgist
2023-06-20 08:03:16 +08:00
parent 5a7deafea9
commit b34c2e904b
2 changed files with 1 additions and 3 deletions

View File

@@ -6,8 +6,6 @@ const { Taoyao, signalChannel } = require("./Taoyao");
// 线程名称
process.title = config.name;
// 禁止校验无效证书
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
// 工作线程
const mediasoupWorkers = [];

View File

@@ -124,7 +124,7 @@ const signalChannel = {
me.reconnection = reconnection;
return new Promise((resolve, reject) => {
console.debug("连接信令通道:", me.address);
me.channel = new WebSocket(me.address, { handshakeTimeout: 5000 });
me.channel = new WebSocket(me.address, { rejectUnauthorized: false, handshakeTimeout: 5000 });
me.channel.on("open", async function () {
console.info("打开信令通道:", me.address);
// TODO电池信息