Skip to content

Commit 46ef506

Browse files
committed
TLS - serverNameToVerify
1 parent 5122091 commit 46ef506

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

web/assets/js/model/inbound.js

+4
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ class TlsStreamSettings extends XrayCommonClass {
554554
maxVersion = TLS_VERSION_OPTION.TLS13,
555555
cipherSuites = '',
556556
rejectUnknownSni = false,
557+
serverNameToVerify = 'dns.google',
557558
disableSystemRoot = false,
558559
enableSessionResumption = false,
559560
certificates = [new TlsStreamSettings.Cert()],
@@ -566,6 +567,7 @@ class TlsStreamSettings extends XrayCommonClass {
566567
this.maxVersion = maxVersion;
567568
this.cipherSuites = cipherSuites;
568569
this.rejectUnknownSni = rejectUnknownSni;
570+
this.serverNameToVerify = serverNameToVerify;
569571
this.disableSystemRoot = disableSystemRoot;
570572
this.enableSessionResumption = enableSessionResumption;
571573
this.certs = certificates;
@@ -597,6 +599,7 @@ class TlsStreamSettings extends XrayCommonClass {
597599
json.maxVersion,
598600
json.cipherSuites,
599601
json.rejectUnknownSni,
602+
json.serverNameToVerify,
600603
json.disableSystemRoot,
601604
json.enableSessionResumption,
602605
certs,
@@ -612,6 +615,7 @@ class TlsStreamSettings extends XrayCommonClass {
612615
maxVersion: this.maxVersion,
613616
cipherSuites: this.cipherSuites,
614617
rejectUnknownSni: this.rejectUnknownSni,
618+
serverNameToVerify: this.serverNameToVerify,
615619
disableSystemRoot: this.disableSystemRoot,
616620
enableSessionResumption: this.enableSessionResumption,
617621
certificates: TlsStreamSettings.toJsonArray(this.certs),

web/html/xui/form/stream/stream_xhttp.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<a-form-item label="Max Upload Size (Byte)" v-if="inbound.stream.xhttp.mode === 'packet-up'">
3434
<a-input v-model.trim="inbound.stream.xhttp.scMaxEachPostBytes"></a-input>
3535
</a-form-item>
36-
<a-form-item label="Stream-Up Server">
36+
<a-form-item label="Stream-Up Server" v-if="inbound.stream.xhttp.mode === 'stream-up'">
3737
<a-input v-model.trim="inbound.stream.xhttp.scStreamUpServerSecs"></a-input>
3838
</a-form-item>
3939
<a-form-item label="Padding Bytes">

web/html/xui/form/tls_settings.html

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
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="Server Name To Verify">
61+
<a-input v-model.trim="inbound.stream.tls.serverNameToVerify"></a-input>
62+
</a-form-item>
6063
<template v-for="cert,index in inbound.stream.tls.certs">
6164
<a-form-item label='{{ i18n "certificate" }}'>
6265
<a-radio-group v-model="cert.useFile" button-style="solid">

0 commit comments

Comments
 (0)