Skip to content

Commit 752f5ba

Browse files
farhadhxeefei
authored andcommitted
fix: rename verifyPeerCertInNames to verifyPeerCertByName to be compatible with xray-core v26.1.31 (#3723)
1 parent 1013afc commit 752f5ba

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

web/assets/js/model/inbound.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ class TlsStreamSettings extends XrayCommonClass {
567567
maxVersion = TLS_VERSION_OPTION.TLS13,
568568
cipherSuites = '',
569569
rejectUnknownSni = false,
570-
verifyPeerCertInNames = ['dns.google', 'cloudflare-dns.com'],
570+
verifyPeerCertByName = ['dns.google', 'cloudflare-dns.com'],
571571
disableSystemRoot = false,
572572
enableSessionResumption = false,
573573
certificates = [new TlsStreamSettings.Cert()],
@@ -582,7 +582,7 @@ class TlsStreamSettings extends XrayCommonClass {
582582
this.maxVersion = maxVersion;
583583
this.cipherSuites = cipherSuites;
584584
this.rejectUnknownSni = rejectUnknownSni;
585-
this.verifyPeerCertInNames = Array.isArray(verifyPeerCertInNames) ? verifyPeerCertInNames.join(",") : verifyPeerCertInNames;
585+
this.verifyPeerCertByName = Array.isArray(verifyPeerCertByName) ? verifyPeerCertByName.join(",") : verifyPeerCertByName;
586586
this.disableSystemRoot = disableSystemRoot;
587587
this.enableSessionResumption = enableSessionResumption;
588588
this.certs = certificates;
@@ -616,7 +616,7 @@ class TlsStreamSettings extends XrayCommonClass {
616616
json.maxVersion,
617617
json.cipherSuites,
618618
json.rejectUnknownSni,
619-
json.verifyPeerCertInNames,
619+
json.verifyPeerCertByName,
620620
json.disableSystemRoot,
621621
json.enableSessionResumption,
622622
certs,
@@ -634,7 +634,7 @@ class TlsStreamSettings extends XrayCommonClass {
634634
maxVersion: this.maxVersion,
635635
cipherSuites: this.cipherSuites,
636636
rejectUnknownSni: this.rejectUnknownSni,
637-
verifyPeerCertInNames: this.verifyPeerCertInNames.split(","),
637+
verifyPeerCertByName: this.verifyPeerCertByName.split(","),
638638
disableSystemRoot: this.disableSystemRoot,
639639
enableSessionResumption: this.enableSessionResumption,
640640
certificates: TlsStreamSettings.toJsonArray(this.certs),

web/html/form/tls_settings.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
<a-form-item label="Session Resumption">
5858
<a-switch v-model="inbound.stream.tls.enableSessionResumption"></a-switch>
5959
</a-form-item>
60-
<a-form-item label="VerifyPeerCertInNames">
61-
<a-input v-model.trim="inbound.stream.tls.verifyPeerCertInNames"></a-input>
60+
<a-form-item label="verifyPeerCertByName">
61+
<a-input v-model.trim="inbound.stream.tls.verifyPeerCertByName"></a-input>
6262
</a-form-item>
6363
<template v-for="cert,index in inbound.stream.tls.certs">
6464
<a-form-item label='{{ i18n "certificate" }}'>

0 commit comments

Comments
 (0)