@@ -554,6 +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
558
disableSystemRoot = false ,
558
559
enableSessionResumption = false ,
559
560
certificates = [ new TlsStreamSettings . Cert ( ) ] ,
@@ -566,6 +567,7 @@ class TlsStreamSettings extends XrayCommonClass {
566
567
this . maxVersion = maxVersion ;
567
568
this . cipherSuites = cipherSuites ;
568
569
this . rejectUnknownSni = rejectUnknownSni ;
570
+ this . serverNameToVerify = serverNameToVerify ;
569
571
this . disableSystemRoot = disableSystemRoot ;
570
572
this . enableSessionResumption = enableSessionResumption ;
571
573
this . certs = certificates ;
@@ -597,6 +599,7 @@ class TlsStreamSettings extends XrayCommonClass {
597
599
json . maxVersion ,
598
600
json . cipherSuites ,
599
601
json . rejectUnknownSni ,
602
+ json . serverNameToVerify ,
600
603
json . disableSystemRoot ,
601
604
json . enableSessionResumption ,
602
605
certs ,
@@ -612,6 +615,7 @@ class TlsStreamSettings extends XrayCommonClass {
612
615
maxVersion : this . maxVersion ,
613
616
cipherSuites : this . cipherSuites ,
614
617
rejectUnknownSni : this . rejectUnknownSni ,
618
+ serverNameToVerify : this . serverNameToVerify ,
615
619
disableSystemRoot : this . disableSystemRoot ,
616
620
enableSessionResumption : this . enableSessionResumption ,
617
621
certificates : TlsStreamSettings . toJsonArray ( this . certs ) ,
0 commit comments