mirror of
https://github.com/avwo/whistle.git
synced 2026-10-29 15:09:28 +08:00
style: display proxyHost in ServerIP column of table
This commit is contained in:
+4
-1
@@ -328,12 +328,15 @@ function resolveWebsocket(socket, wss) {
|
||||
if (destroyed) {
|
||||
return;
|
||||
}
|
||||
if (socket._phost) {
|
||||
resData.phost = socket._phost.host;
|
||||
}
|
||||
try {
|
||||
var s = netMgr.connect(proxyOpts, handleProxy);
|
||||
s.on('error', isXProxy ? function() {
|
||||
if (isXProxy) {
|
||||
isXProxy = false;
|
||||
socket._phost = undefined;
|
||||
resData.phost = undefined;
|
||||
connectServer();
|
||||
}
|
||||
} : execCallback);
|
||||
|
||||
Reference in New Issue
Block a user