From 2a9ba2badce25d16648a385134e3b33f1e906581 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 21 Apr 2026 14:13:55 +0200 Subject: [PATCH] salamander obfs and remove auth field --- web/assets/js/model/inbound.js | 10 ++++++++++ web/html/form/stream/stream_hysteria.html | 15 --------------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index 5d167ead..4eeb1964 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -1830,6 +1830,16 @@ class Inbound extends XrayCommonClass { if (this.stream.tls.settings.echConfigList?.length > 0) params.set("ech", this.stream.tls.settings.echConfigList.join(',')); if (this.stream.tls.sni?.length > 0) params.set("sni", this.stream.tls.sni); + const udpMasks = this.stream?.finalmask?.udp; + if (Array.isArray(udpMasks)) { + const salamanderMask = udpMasks.find(mask => mask?.type === 'salamander'); + const obfsPassword = salamanderMask?.settings?.password; + if (typeof obfsPassword === 'string' && obfsPassword.length > 0) { + params.set("obfs", "salamander"); + params.set("obfs-password", obfsPassword); + } + } + const url = new URL(link); for (const [key, value] of params) { url.searchParams.set(key, value); diff --git a/web/html/form/stream/stream_hysteria.html b/web/html/form/stream/stream_hysteria.html index 4a424fd1..960239bd 100644 --- a/web/html/form/stream/stream_hysteria.html +++ b/web/html/form/stream/stream_hysteria.html @@ -4,21 +4,6 @@ :label-col="{ md: {span:8} }" :wrapper-col="{ md: {span:14} }" > - - - -