Merge pull request #921 from nz-lin/master

修复: WS连接时使用 data/RemoteServiceConfig 中的 connectOpts
This commit is contained in:
unitwk 2023-07-02 11:03:17 +08:00 committed by GitHub
commit 94cb5ad0e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ export default class RemoteService {
}
logger.info(`${$t("daemonInfo.tryConnect")}:${daemonInfo}`);
this.socket = io(addr, connectOpts);
this.socket = io(addr, this.config.connectOpts);
// register built-in events
this.socket.on("connect", async () => {