mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
fixed - Transparent Proxy button
This commit is contained in:
parent
8698024b61
commit
ba673778ea
1 changed files with 3 additions and 2 deletions
|
@ -421,7 +421,6 @@ class HttpStreamSettings extends XrayCommonClass {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class QuicStreamSettings extends XrayCommonClass {
|
class QuicStreamSettings extends XrayCommonClass {
|
||||||
constructor(security=VmessMethods.NONE,
|
constructor(security=VmessMethods.NONE,
|
||||||
key=RandomUtil.randomSeq(10), type='none') {
|
key=RandomUtil.randomSeq(10), type='none') {
|
||||||
|
@ -483,7 +482,7 @@ class TlsStreamSettings extends XrayCommonClass {
|
||||||
cipherSuites = '',
|
cipherSuites = '',
|
||||||
rejectUnknownSni = false,
|
rejectUnknownSni = false,
|
||||||
certificates=[new TlsStreamSettings.Cert()],
|
certificates=[new TlsStreamSettings.Cert()],
|
||||||
alpn=[ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
|
alpn=[ALPN_OPTION.HTTP1,ALPN_OPTION.H2],
|
||||||
settings=new TlsStreamSettings.Settings()) {
|
settings=new TlsStreamSettings.Settings()) {
|
||||||
super();
|
super();
|
||||||
this.server = serverName;
|
this.server = serverName;
|
||||||
|
@ -816,6 +815,7 @@ class SockoptStreamSettings extends XrayCommonClass {
|
||||||
this.tproxy = tproxy;
|
this.tproxy = tproxy;
|
||||||
}
|
}
|
||||||
static fromJson(json = {}) {
|
static fromJson(json = {}) {
|
||||||
|
if (Object.keys(json).length === 0) return undefined;
|
||||||
return new SockoptStreamSettings(
|
return new SockoptStreamSettings(
|
||||||
json.acceptProxyProtocol,
|
json.acceptProxyProtocol,
|
||||||
json.tcpFastOpen,
|
json.tcpFastOpen,
|
||||||
|
@ -823,6 +823,7 @@ class SockoptStreamSettings extends XrayCommonClass {
|
||||||
json.tproxy,
|
json.tproxy,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
toJson() {
|
toJson() {
|
||||||
return {
|
return {
|
||||||
acceptProxyProtocol: this.acceptProxyProtocol,
|
acceptProxyProtocol: this.acceptProxyProtocol,
|
||||||
|
|
Loading…
Reference in a new issue