mirror of
https://github.com/avwo/whistle.git
synced 2026-10-28 22:59:50 +08:00
refactor: refine code
This commit is contained in:
+2
-2
@@ -584,8 +584,8 @@ function resolveWebsocket(socket, wss) {
|
||||
}
|
||||
clearTimeout(timeout);
|
||||
var clientId = headers[config.CLIENT_ID_HEADER];
|
||||
if (clientId && !proxyUrl) {
|
||||
if (!options.isPlugin && !socket._customClientId && !util.isKeepClientId(socket)) {
|
||||
if (clientId) {
|
||||
if (!options.isPlugin && !socket._customClientId && !util.isKeepClientId(socket, proxyUrl)) {
|
||||
socket._origClientId = clientId;
|
||||
util.removeClientId(headers);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user