From 313b51f96f2f94de9908c6900988a7d1b170f08f Mon Sep 17 00:00:00 2001 From: Denis Gorelov <86232599+RFOTQ@users.noreply.github.com> Date: Sat, 1 Nov 2025 15:07:05 +0300 Subject: feat: Add random Reality Target/SNI selection from 52 popular services (#3577) * feat: Add random Reality Target/SNI selection from 52 popular services - Created reality_targets.js with list of 52 popular services - Updated RealityStreamSettings to use random targets by default - Added UI randomize buttons with sync icon in Reality settings form - Implemented randomizeRealityTarget() method in inbound modal - Replaces hardcoded google.com with diverse global services * fix --------- Co-authored-by: mhsanaei --- web/html/modals/inbound_modal.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'web/html/modals/inbound_modal.html') diff --git a/web/html/modals/inbound_modal.html b/web/html/modals/inbound_modal.html index 176f2eee..3c844381 100644 --- a/web/html/modals/inbound_modal.html +++ b/web/html/modals/inbound_modal.html @@ -158,6 +158,13 @@ this.inbound.stream.reality.mldsa65Seed = ''; this.inbound.stream.reality.settings.mldsa65Verify = ''; }, + randomizeRealityTarget() { + if (typeof getRandomRealityTarget !== 'undefined') { + const randomTarget = getRandomRealityTarget(); + this.inbound.stream.reality.target = randomTarget.target; + this.inbound.stream.reality.serverNames = randomTarget.sni; + } + }, async getNewEchCert() { inModal.loading(true); const msg = await HttpUtil.post('/panel/api/server/getNewEchCert', { sni: inModal.inbound.stream.tls.sni }); -- cgit v1.2.3