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
path: root/web/html
diff options
context:
space:
mode:
Diffstat (limited to 'web/html')
-rw-r--r--web/html/form/reality_settings.html20
-rw-r--r--web/html/inbounds.html1
-rw-r--r--web/html/modals/inbound_modal.html7
3 files changed, 26 insertions, 2 deletions
diff --git a/web/html/form/reality_settings.html b/web/html/form/reality_settings.html
index 218ba86d..29170f03 100644
--- a/web/html/form/reality_settings.html
+++ b/web/html/form/reality_settings.html
@@ -12,10 +12,26 @@
<a-select-option v-for="key in UTLS_FINGERPRINT" :value="key">[[ key ]]</a-select-option>
</a-select>
</a-form-item>
- <a-form-item label='Target'>
+ <a-form-item>
+ <template slot="label">
+ <a-tooltip>
+ <template slot="title">
+ <span>{{ i18n "reset" }}</span>
+ </template> Target <a-icon @click="randomizeRealityTarget()"
+ type="sync"></a-icon>
+ </a-tooltip>
+ </template>
<a-input v-model.trim="inbound.stream.reality.target"></a-input>
</a-form-item>
- <a-form-item label='SNI'>
+ <a-form-item>
+ <template slot="label">
+ <a-tooltip>
+ <template slot="title">
+ <span>{{ i18n "reset" }}</span>
+ </template> SNI <a-icon @click="randomizeRealityTarget()"
+ type="sync"></a-icon>
+ </a-tooltip>
+ </template>
<a-input v-model.trim="inbound.stream.reality.serverNames"></a-input>
</a-form-item>
<a-form-item label='Max Time Diff (ms)'>
diff --git a/web/html/inbounds.html b/web/html/inbounds.html
index 2ab00f09..8616dce5 100644
--- a/web/html/inbounds.html
+++ b/web/html/inbounds.html
@@ -602,6 +602,7 @@
{{template "page/body_scripts" .}}
<script src="{{ .base_path }}assets/qrcode/qrious2.min.js?{{ .cur_ver }}"></script>
<script src="{{ .base_path }}assets/uri/URI.min.js?{{ .cur_ver }}"></script>
+<script src="{{ .base_path }}assets/js/model/reality_targets.js?{{ .cur_ver }}"></script>
<script src="{{ .base_path }}assets/js/model/inbound.js?{{ .cur_ver }}"></script>
<script src="{{ .base_path }}assets/js/model/dbinbound.js?{{ .cur_ver }}"></script>
{{template "component/aSidebar" .}}
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 });