mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-06-07 09:48:21 +00:00
Merge branch 'silentcloud-fix/wss-port'
This commit is contained in:
commit
3e2daef4aa
@ -710,7 +710,8 @@ function getWsHandler(userRule, recorder, wsClient, wsReq) {
|
|||||||
};
|
};
|
||||||
const clientMsgQueue = [];
|
const clientMsgQueue = [];
|
||||||
const serverInfo = getWsReqInfo(wsReq);
|
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, '', {
|
const proxyWs = new WebSocket(wsUrl, '', {
|
||||||
rejectUnauthorized: !self.dangerouslyIgnoreUnauthorized,
|
rejectUnauthorized: !self.dangerouslyIgnoreUnauthorized,
|
||||||
headers: serverInfo.noWsHeaders
|
headers: serverInfo.noWsHeaders
|
||||||
|
Loading…
x
Reference in New Issue
Block a user