From c6062eb15c988ae0b4e19842a15b332ea7f0c556 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Sun, 3 Aug 2025 12:09:37 +0200 Subject: [PATCH] outbound: mldsa65Verify --- web/assets/js/model/outbound.js | 9 +++++++-- web/html/form/outbound.html | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 89a11652..03569b00 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -388,7 +388,8 @@ class RealityStreamSettings extends CommonClass { fingerprint = '', serverName = '', shortId = '', - spiderX = '/' + spiderX = '', + mldsa65Verify = '' ) { super(); this.publicKey = publicKey; @@ -396,6 +397,7 @@ class RealityStreamSettings extends CommonClass { this.serverName = serverName; this.shortId = shortId this.spiderX = spiderX; + this.mldsa65Verify = mldsa65Verify; } static fromJson(json = {}) { return new RealityStreamSettings( @@ -404,6 +406,7 @@ class RealityStreamSettings extends CommonClass { json.serverName, json.shortId, json.spiderX, + json.mldsa65Verify ); } toJson() { @@ -413,6 +416,7 @@ class RealityStreamSettings extends CommonClass { serverName: this.serverName, shortId: this.shortId, spiderX: this.spiderX, + mldsa65Verify: this.mldsa65Verify }; } }; @@ -787,7 +791,8 @@ class Outbound extends CommonClass { let sni = url.searchParams.get('sni') ?? ''; let sid = url.searchParams.get('sid') ?? ''; let spx = url.searchParams.get('spx') ?? ''; - stream.reality = new RealityStreamSettings(pbk, fp, sni, sid, spx); + let pqv = url.searchParams.get('pqv') ?? ''; + stream.reality = new RealityStreamSettings(pbk, fp, sni, sid, spx, pqv); } const regex = /([^@]+):\/\/([^@]+)@(.+):(\d+)(.*)$/; diff --git a/web/html/form/outbound.html b/web/html/form/outbound.html index 5069c51b..4b15b22c 100644 --- a/web/html/form/outbound.html +++ b/web/html/form/outbound.html @@ -452,6 +452,9 @@ + + +