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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-05-13 13:03:13 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-05-13 13:03:13 +0300
commit46bc39c160d28dc3f131d87c7bace01747cbebb9 (patch)
treee786f50dcea8fe713ad3ff97944f3dd948db12d4
parent2a182d8b9adbe762b2f3de7b4f127c79384b9a24 (diff)
[bug] fix cloned inbound settings
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
-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() : '{}',
};