From a097733ccc9092d809ce6414949d27a102d82d71 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Fri, 12 May 2023 11:34:46 +0200 Subject: [PATCH] [bug] fix cloned inbound settings #305 --- web/html/xui/inbounds.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 4a2fe7cc..5c44d2b1 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -519,7 +519,6 @@ }); }, async cloneInbound(baseInbound, dbInbound) { - const inbound = new Inbound(); const data = { up: dbInbound.up, down: dbInbound.down, @@ -528,10 +527,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() : '{}', };