From 19a31686da26c0c8a8f0ee255d3b0728524bb95f Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Wed, 30 Oct 2024 14:40:41 +0100 Subject: [PATCH] REALITY: SplitHTTP transport --- web/assets/js/model/{xray.js => inbound.js} | 2 +- web/assets/js/model/outbound.js | 2 +- web/html/xui/inbounds.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename web/assets/js/model/{xray.js => inbound.js} (99%) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/inbound.js similarity index 99% rename from web/assets/js/model/xray.js rename to web/assets/js/model/inbound.js index b7d68dd83e..ea6f56fa10 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/inbound.js @@ -1259,7 +1259,7 @@ class Inbound extends XrayCommonClass { canEnableReality() { if (![Protocols.VLESS, Protocols.TROJAN].includes(this.protocol)) return false; - return ["tcp", "http", "grpc"].includes(this.network); + return ["tcp", "http", "grpc", "splithttp"].includes(this.network); } canEnableStream() { diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 870f555f46..d7338645df 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -602,7 +602,7 @@ class Outbound extends CommonClass { canEnableReality() { if (![Protocols.VLESS, Protocols.Trojan].includes(this.protocol)) return false; - return ["tcp", "http", "grpc"].includes(this.stream.network); + return ["tcp", "http", "grpc", "splithttp"].includes(this.stream.network); } canEnableStream() { diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 32bc431fdc..a5a4c94019 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -548,7 +548,7 @@ - + {{template "component/themeSwitcher" .}} {{template "component/persianDatepicker" .}}