mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 08:41:31 +00:00
fix: default wss port will cause service close
This commit is contained in:
parent
68188c9cd6
commit
e003c887fa
@ -710,7 +710,8 @@ function getWsHandler(userRule, recorder, wsClient, wsReq) {
|
||||
};
|
||||
const clientMsgQueue = [];
|
||||
const serverInfo = getWsReqInfo(wsReq);
|
||||
const wsUrl = `${serverInfo.protocol}://${serverInfo.hostName}:${serverInfo.port}${serverInfo.path}`;
|
||||
const serverInfoPort = serverInfo.port ? `:${serverInfo.port}` : '';
|
||||
const wsUrl = `${serverInfo.protocol}://${serverInfo.hostName}${serverInfoPort}${serverInfo.path}`;
|
||||
const proxyWs = new WebSocket(wsUrl, '', {
|
||||
rejectUnauthorized: !self.dangerouslyIgnoreUnauthorized,
|
||||
headers: serverInfo.noWsHeaders
|
||||
|
Loading…
x
Reference in New Issue
Block a user