From 525fcf2a5a91a33718e8f379bf886737585f7dd9 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 13 May 2026 01:23:51 +0200 Subject: [PATCH] fix --- frontend/src/models/inbound.js | 3 +- .../src/pages/inbounds/InboundFormModal.vue | 38 +++++++++---------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/frontend/src/models/inbound.js b/frontend/src/models/inbound.js index cccd8d4d..f8f1738e 100644 --- a/frontend/src/models/inbound.js +++ b/frontend/src/models/inbound.js @@ -687,8 +687,9 @@ export class HysteriaMasquerade extends XrayCommonClass { } static fromJson(json = {}) { + const type = ['proxy', 'file', 'string'].includes(json.type) ? json.type : 'proxy'; return new HysteriaMasquerade( - json.type, + type, json.dir, json.url, json.rewriteHost, diff --git a/frontend/src/pages/inbounds/InboundFormModal.vue b/frontend/src/pages/inbounds/InboundFormModal.vue index 67ba1693..7eebd594 100644 --- a/frontend/src/pages/inbounds/InboundFormModal.vue +++ b/frontend/src/pages/inbounds/InboundFormModal.vue @@ -1673,29 +1673,22 @@ watch( +