@@ -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 ) ,
0 commit comments