mirror of
https://github.com/yhl452493373/frpc-panel.git
synced 2026-04-04 06:17:00 +08:00
fix treat remotePort as a number
fix remove proxy failed
This commit is contained in:
@@ -320,16 +320,14 @@ var loadProxyInfo = (function ($) {
|
|||||||
}, function (index) {
|
}, function (index) {
|
||||||
layui.layer.close(index);
|
layui.layer.close(index);
|
||||||
var proxies = clientConfig.proxies;
|
var proxies = clientConfig.proxies;
|
||||||
var newProxies = [];
|
for (var i = 0; i < data.length; i++) {
|
||||||
for (var i = 0; i < proxies.length; i++) {
|
proxies.forEach(function (proxy, j) {
|
||||||
var proxy = proxies[i];
|
if (data[i].name === proxy.name) {
|
||||||
for (var temp of data) {
|
proxies.splice(j, 1);
|
||||||
if (temp.name !== proxy.name) {
|
|
||||||
newProxies.push(proxy);
|
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
clientConfig.proxies = newProxies;
|
|
||||||
updateFrpcConfig(index);
|
updateFrpcConfig(index);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
'healthCheck.maxFailed',
|
'healthCheck.maxFailed',
|
||||||
'healthCheck.intervalSeconds',
|
'healthCheck.intervalSeconds',
|
||||||
'localPort',
|
'localPort',
|
||||||
|
'remotePort'
|
||||||
],
|
],
|
||||||
boolean: [
|
boolean: [
|
||||||
'transport.useEncryption',
|
'transport.useEncryption',
|
||||||
|
|||||||
Reference in New Issue
Block a user