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:
authorFarhad H. P. Shirvan <9374298+farhadh@users.noreply.github.com>2026-01-31 21:50:08 +0300
committerGitHub <noreply@github.com>2026-01-31 21:50:08 +0300
commitea0da32e810417d4b66d48edd34bac0ab74ee4a5 (patch)
tree59d370f5182af1a22c1ab42d7f478595d7836e97 /web/assets
parentd5ea8d0f3832512f8430e3c54056a7db36482e6a (diff)
fix: rename `verifyPeerCertInNames` to `verifyPeerCertByName` to be compatible with xray-core v26.1.31 (#3723)
Diffstat (limited to 'web/assets')
-rw-r--r--web/assets/js/model/inbound.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js
index e5fe368f..58cc7421 100644
--- a/web/assets/js/model/inbound.js
+++ b/web/assets/js/model/inbound.js
@@ -554,7 +554,7 @@ class TlsStreamSettings extends XrayCommonClass {
maxVersion = TLS_VERSION_OPTION.TLS13,
cipherSuites = '',
rejectUnknownSni = false,
- verifyPeerCertInNames = ['dns.google', 'cloudflare-dns.com'],
+ verifyPeerCertByName = ['dns.google', 'cloudflare-dns.com'],
disableSystemRoot = false,
enableSessionResumption = false,
certificates = [new TlsStreamSettings.Cert()],
@@ -569,7 +569,7 @@ class TlsStreamSettings extends XrayCommonClass {
this.maxVersion = maxVersion;
this.cipherSuites = cipherSuites;
this.rejectUnknownSni = rejectUnknownSni;
- this.verifyPeerCertInNames = Array.isArray(verifyPeerCertInNames) ? verifyPeerCertInNames.join(",") : verifyPeerCertInNames;
+ this.verifyPeerCertByName = Array.isArray(verifyPeerCertByName) ? verifyPeerCertByName.join(",") : verifyPeerCertByName;
this.disableSystemRoot = disableSystemRoot;
this.enableSessionResumption = enableSessionResumption;
this.certs = certificates;
@@ -603,7 +603,7 @@ class TlsStreamSettings extends XrayCommonClass {
json.maxVersion,
json.cipherSuites,
json.rejectUnknownSni,
- json.verifyPeerCertInNames,
+ json.verifyPeerCertByName,
json.disableSystemRoot,
json.enableSessionResumption,
certs,
@@ -621,7 +621,7 @@ class TlsStreamSettings extends XrayCommonClass {
maxVersion: this.maxVersion,
cipherSuites: this.cipherSuites,
rejectUnknownSni: this.rejectUnknownSni,
- verifyPeerCertInNames: this.verifyPeerCertInNames.split(","),
+ verifyPeerCertByName: this.verifyPeerCertByName.split(","),
disableSystemRoot: this.disableSystemRoot,
enableSessionResumption: this.enableSessionResumption,
certificates: TlsStreamSettings.toJsonArray(this.certs),