Skip to content

Commit

Permalink
Revert back Early data.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Apr 12, 2024
1 parent 8b430bc commit 15b8a33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,9 @@ const getNormalConfigs = async (env, hostName, client) => {
randomUpperCase(hostName)
}&sni=${
randomUpperCase(hostName)
}&fp=randomized&alpn=http/1.1&path=/${getRandomPath(16)}#${encodeURIComponent(remark)}\n`;
}&fp=randomized&alpn=http/1.1&path=${
encodeURIComponent(`/${getRandomPath(16)}?ed=2048`)
}#${encodeURIComponent(remark)}\n`;
});

const subscription = client === 'singbox' ? btoa(vlessWsTls) : btoa(vlessWsTls.replaceAll('http/1.1', 'h2,http/1.1'));
Expand Down Expand Up @@ -1016,7 +1018,7 @@ const getFragmentConfigs = async (env, hostName, client) => {
outbound.settings.vnext[0].users[0].id = userID;
outbound.streamSettings.tlsSettings.serverName = randomUpperCase(hostName);
outbound.streamSettings.wsSettings.headers.Host = randomUpperCase(hostName);
outbound.streamSettings.wsSettings.path = `/${getRandomPath(16)}`;
outbound.streamSettings.wsSettings.path = `/${getRandomPath(16)}?ed=2048`;

fragConfig.remarks = remark.length <= 30 ? remark : `${remark.slice(0,29)}...`;;
fragConfig.dns.servers[0] = remoteDNS;
Expand Down

0 comments on commit 15b8a33

Please sign in to comment.