From 4b2169d9f6092db10511123fc1ce53e543c19f59 Mon Sep 17 00:00:00 2001 From: SudoSpace <79229394+sudospaes@users.noreply.github.com> Date: Sun, 16 Jul 2023 14:33:07 +0330 Subject: [PATCH] revert changes --- web/html/xui/inbounds.html | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 781ea721..11e9de7a 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -616,17 +616,9 @@ port: RandomUtil.randomIntRange(10000, 60000), protocol: baseInbound.protocol, settings: Inbound.Settings.getSettings(baseInbound.protocol).toString(), + streamSettings: baseInbound.stream.toString(), sniffing: baseInbound.canSniffing() ? baseInbound.sniffing.toString() : '{}', }; - if(baseInbound.stream.isReality) { - const getNewX25519 = await HttpUtil.post('/server/getNewX25519Cert'); - baseInbound.stream.reality.shortIds = RandomUtil.randomShortId(); - baseInbound.stream.reality.privateKey = getNewX25519.obj.privateKey - baseInbound.stream.reality.settings.publicKey = getNewX25519.obj.publicKey; - data.streamSettings = baseInbound.stream.toString(); - } else { - data.streamSettings = baseInbound.stream.toString(); - } await this.submit('/xui/inbound/add', data, inModal); }, async addInbound(inbound, dbInbound) {