style: display proxyHost in ServerIP column of table

This commit is contained in:
avwo
2019-10-11 15:43:05 +08:00
parent 48b9a8a64c
commit a67040f5d0
5 changed files with 18 additions and 7 deletions
+4 -1
View File
@@ -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);