@@ -554,7 +554,7 @@ class TlsStreamSettings extends XrayCommonClass {
554
554
maxVersion = TLS_VERSION_OPTION . TLS13 ,
555
555
cipherSuites = '' ,
556
556
rejectUnknownSni = false ,
557
- serverNameToVerify = 'dns.google' ,
557
+ verifyPeerCertInNames = [ 'dns.google' , 'cloudflare-dns.com' ] ,
558
558
disableSystemRoot = false ,
559
559
enableSessionResumption = false ,
560
560
certificates = [ new TlsStreamSettings . Cert ( ) ] ,
@@ -567,7 +567,7 @@ class TlsStreamSettings extends XrayCommonClass {
567
567
this . maxVersion = maxVersion ;
568
568
this . cipherSuites = cipherSuites ;
569
569
this . rejectUnknownSni = rejectUnknownSni ;
570
- this . serverNameToVerify = serverNameToVerify ;
570
+ this . verifyPeerCertInNames = Array . isArray ( verifyPeerCertInNames ) ? verifyPeerCertInNames . join ( "," ) : verifyPeerCertInNames ;
571
571
this . disableSystemRoot = disableSystemRoot ;
572
572
this . enableSessionResumption = enableSessionResumption ;
573
573
this . certs = certificates ;
@@ -599,7 +599,7 @@ class TlsStreamSettings extends XrayCommonClass {
599
599
json . maxVersion ,
600
600
json . cipherSuites ,
601
601
json . rejectUnknownSni ,
602
- json . serverNameToVerify ,
602
+ json . verifyPeerCertInNames ,
603
603
json . disableSystemRoot ,
604
604
json . enableSessionResumption ,
605
605
certs ,
@@ -615,7 +615,7 @@ class TlsStreamSettings extends XrayCommonClass {
615
615
maxVersion : this . maxVersion ,
616
616
cipherSuites : this . cipherSuites ,
617
617
rejectUnknownSni : this . rejectUnknownSni ,
618
- serverNameToVerify : this . serverNameToVerify ,
618
+ verifyPeerCertInNames : this . verifyPeerCertInNames . split ( "," ) ,
619
619
disableSystemRoot : this . disableSystemRoot ,
620
620
enableSessionResumption : this . enableSessionResumption ,
621
621
certificates : TlsStreamSettings . toJsonArray ( this . certs ) ,
0 commit comments