|
@@ -556,6 +556,7 @@ class TlsStreamSettings extends XrayCommonClass {
|
|
cipherSuites = '',
|
|
cipherSuites = '',
|
|
rejectUnknownSni = false,
|
|
rejectUnknownSni = false,
|
|
disableSystemRoot = false,
|
|
disableSystemRoot = false,
|
|
|
|
+ enableSessionResumption = false,
|
|
certificates=[new TlsStreamSettings.Cert()],
|
|
certificates=[new TlsStreamSettings.Cert()],
|
|
alpn=[ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
|
|
alpn=[ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
|
|
settings=new TlsStreamSettings.Settings()) {
|
|
settings=new TlsStreamSettings.Settings()) {
|
|
@@ -566,6 +567,7 @@ class TlsStreamSettings extends XrayCommonClass {
|
|
this.cipherSuites = cipherSuites;
|
|
this.cipherSuites = cipherSuites;
|
|
this.rejectUnknownSni = rejectUnknownSni;
|
|
this.rejectUnknownSni = rejectUnknownSni;
|
|
this.disableSystemRoot = disableSystemRoot;
|
|
this.disableSystemRoot = disableSystemRoot;
|
|
|
|
+ this.enableSessionResumption = enableSessionResumption;
|
|
this.certs = certificates;
|
|
this.certs = certificates;
|
|
this.alpn = alpn;
|
|
this.alpn = alpn;
|
|
this.settings = settings;
|
|
this.settings = settings;
|
|
@@ -596,6 +598,7 @@ class TlsStreamSettings extends XrayCommonClass {
|
|
json.cipherSuites,
|
|
json.cipherSuites,
|
|
json.rejectUnknownSni,
|
|
json.rejectUnknownSni,
|
|
json.disableSystemRoot,
|
|
json.disableSystemRoot,
|
|
|
|
+ json.enableSessionResumption,
|
|
certs,
|
|
certs,
|
|
json.alpn,
|
|
json.alpn,
|
|
settings,
|
|
settings,
|
|
@@ -610,6 +613,7 @@ class TlsStreamSettings extends XrayCommonClass {
|
|
cipherSuites: this.cipherSuites,
|
|
cipherSuites: this.cipherSuites,
|
|
rejectUnknownSni: this.rejectUnknownSni,
|
|
rejectUnknownSni: this.rejectUnknownSni,
|
|
disableSystemRoot: this.disableSystemRoot,
|
|
disableSystemRoot: this.disableSystemRoot,
|
|
|
|
+ enableSessionResumption: this.enableSessionResumption,
|
|
certificates: TlsStreamSettings.toJsonArray(this.certs),
|
|
certificates: TlsStreamSettings.toJsonArray(this.certs),
|
|
alpn: this.alpn,
|
|
alpn: this.alpn,
|
|
settings: this.settings,
|
|
settings: this.settings,
|