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:
-rw-r--r--web/assets/js/model/xray.js4
-rw-r--r--web/html/xui/form/tls_settings.html6
2 files changed, 9 insertions, 1 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index b627570f..255577df 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -468,6 +468,7 @@ class TlsStreamSettings extends XrayCommonClass {
minVersion = TLS_VERSION_OPTION.TLS12,
maxVersion = TLS_VERSION_OPTION.TLS13,
cipherSuites = '',
+ rejectUnknownSni = false,
certificates=[new TlsStreamSettings.Cert()],
alpn=[ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
settings=new TlsStreamSettings.Settings()) {
@@ -476,6 +477,7 @@ class TlsStreamSettings extends XrayCommonClass {
this.minVersion = minVersion;
this.maxVersion = maxVersion;
this.cipherSuites = cipherSuites;
+ this.rejectUnknownSni = rejectUnknownSni;
this.certs = certificates;
this.alpn = alpn;
this.settings = settings;
@@ -503,6 +505,7 @@ class TlsStreamSettings extends XrayCommonClass {
json.minVersion,
json.maxVersion,
json.cipherSuites,
+ json.rejectUnknownSni,
certs,
json.alpn,
settings,
@@ -515,6 +518,7 @@ class TlsStreamSettings extends XrayCommonClass {
minVersion: this.minVersion,
maxVersion: this.maxVersion,
cipherSuites: this.cipherSuites,
+ rejectUnknownSni: this.rejectUnknownSni,
certificates: TlsStreamSettings.toJsonArray(this.certs),
alpn: this.alpn,
settings: this.settings,
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index 58edf992..227c5466 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -35,7 +35,6 @@
<a-form v-if="inbound.tls" layout="inline">
<a-form-item label='Multi Domain'>
<a-switch v-model="multiDomain"></a-switch>
-
</a-form-item>
<a-form-item v-if="multiDomain">
<a-row>
@@ -85,9 +84,14 @@
<a-checkbox v-for="key,value in ALPN_OPTION" :value="key">[[ value ]]</a-checkbox>
</a-checkbox-group>
</a-form-item>
+ <br>
<a-form-item label="Allow insecure">
<a-switch v-model="inbound.stream.tls.settings.allowInsecure"></a-switch>
</a-form-item>
+ <br>
+ <a-form-item label="Reject Unknown SNI">
+ <a-switch v-model="inbound.stream.tls.rejectUnknownSni"></a-switch>
+ </a-form-item>
<template v-for="cert,index in inbound.stream.tls.certs">
<a-form-item label='{{ i18n "certificate" }}'>
<a-radio-group v-model="cert.useFile" button-style="solid">