Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-04-21 15:13:55 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-04-21 15:13:55 +0300
commit2a9ba2badce25d16648a385134e3b33f1e906581 (patch)
treea37001b87bb64e9470db721ef4084cb21050c144 /web/assets
parent53fb4fe8f9a7c744f3bb1482e0216f8eab4d8155 (diff)
salamander obfs and remove auth field
Diffstat (limited to 'web/assets')
-rw-r--r--web/assets/js/model/inbound.js10
1 files changed, 10 insertions, 0 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);