Skip to content

Commit

Permalink
default - alpn h3, utls random
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Jul 13, 2024
1 parent 3d7f132 commit 60cb328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/assets/js/model/xray.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ class TlsStreamSettings extends XrayCommonClass {
disableSystemRoot = false,
enableSessionResumption = false,
certificates=[new TlsStreamSettings.Cert()],
alpn=[ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
alpn=[ALPN_OPTION.H3,ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
settings=new TlsStreamSettings.Settings()) {
super();
this.sni = serverName;
Expand Down Expand Up @@ -712,7 +712,7 @@ TlsStreamSettings.Settings = class extends XrayCommonClass {
class XtlsStreamSettings extends XrayCommonClass {
constructor(serverName='',
certificates=[new XtlsStreamSettings.Cert()],
alpn=[ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
alpn=[ALPN_OPTION.H3,ALPN_OPTION.H2,ALPN_OPTION.HTTP1],
settings=new XtlsStreamSettings.Settings()) {
super();
this.sni = serverName;
Expand Down Expand Up @@ -892,7 +892,7 @@ class RealityStreamSettings extends XrayCommonClass {
}

RealityStreamSettings.Settings = class extends XrayCommonClass {
constructor(publicKey = '', fingerprint = UTLS_FINGERPRINT.UTLS_FIREFOX, serverName = '', spiderX= '/') {
constructor(publicKey = '', fingerprint = UTLS_FINGERPRINT.UTLS_RANDOM, serverName = '', spiderX= '/') {
super();
this.publicKey = publicKey;
this.fingerprint = fingerprint;
Expand Down

0 comments on commit 60cb328

Please sign in to comment.