Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/xui/inbounds.html')
-rw-r--r--web/html/xui/inbounds.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 41942b74..b073978a 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -495,7 +495,6 @@
});
},
async cloneInbound(baseInbound, dbInbound) {
- const inbound = new Inbound();
const data = {
up: dbInbound.up,
down: dbInbound.down,
@@ -504,10 +503,10 @@
enable: dbInbound.enable,
expiryTime: dbInbound.expiryTime,
- listen: inbound.listen,
- port: inbound.port,
+ listen: '',
+ port: RandomUtil.randomIntRange(10000, 60000),
protocol: baseInbound.protocol,
- settings: inbound.settings.toString(),
+ settings: Inbound.Settings.getSettings(baseInbound.protocol).toString(),
streamSettings: baseInbound.stream.toString(),
sniffing: baseInbound.canSniffing() ? baseInbound.sniffing.toString() : '{}',
};