From 700973655cf2a42ab36c7fbdf430287143a0c250 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sat, 29 Apr 2023 15:28:15 +0200 Subject: [PATCH] [feature] add sniffing DestOverride options #276 --- web/assets/js/model/xray.js | 7 +++++++ web/html/xui/form/sniffing.html | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 6c90fbdb..38b0efcd 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -80,6 +80,12 @@ const ALPN_OPTION = { HTTP1: "http/1.1", }; +const SNIFFING_OPTION = { + HTTP: "http", + TLS: "tls", + QUIC: "quic", +}; + Object.freeze(Protocols); Object.freeze(VmessMethods); Object.freeze(SSMethods); @@ -87,6 +93,7 @@ Object.freeze(TLS_FLOW_CONTROL); Object.freeze(TLS_VERSION_OPTION); Object.freeze(TLS_CIPHER_OPTION); Object.freeze(ALPN_OPTION); +Object.freeze(SNIFFING_OPTION); class XrayCommonClass { diff --git a/web/html/xui/form/sniffing.html b/web/html/xui/form/sniffing.html index 838c92fc..c3760d4f 100644 --- a/web/html/xui/form/sniffing.html +++ b/web/html/xui/form/sniffing.html @@ -12,5 +12,10 @@ + + + [[ value ]] + + {{end}} \ No newline at end of file