From b5fbb94cfc4c34a9176b5e49cd33eb229ac5bd31 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sat, 10 Oct 2026 23:00:52 +0200 Subject: [PATCH] Subscriptions: offer MASQUE clients only the JSON subscription --- web/assets/js/model/dbinbound.js | 4 ++++ web/html/common/qrcode_modal.html | 3 ++- web/html/xui/inbound_info_modal.html | 3 ++- web/html/xui/inbounds.html | 10 ++++++++-- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/web/assets/js/model/dbinbound.js b/web/assets/js/model/dbinbound.js index 57bc7c08..e39181a0 100644 --- a/web/assets/js/model/dbinbound.js +++ b/web/assets/js/model/dbinbound.js @@ -60,6 +60,10 @@ class DBInbound { return this.protocol === Protocols.WIREGUARD; } + get isMasque() { + return this.protocol === Protocols.MASQUE; + } + get address() { let address = location.hostname; if (!ObjectUtil.isEmpty(this.listen) && this.listen !== "0.0.0.0") { diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html index 19479bd9..fb111bf3 100644 --- a/web/html/common/qrcode_modal.html +++ b/web/html/common/qrcode_modal.html @@ -34,7 +34,8 @@ width="560px" :class="themeSwitcher.currentTheme">