Skip to content

Commit

Permalink
trojan
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejun committed May 10, 2024
1 parent 299dfac commit fc3daad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trojan_workers/_workers.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const worker_default = {
case `/${pwd}`:{
const host = request.headers.get('Host');
if ( 'PROXYIP' in env) {
return new Response(getprotocol() + `://` + pwd + `@${host}:443/?type=ws&host=${host}&security=tls`, {
return new Response(getprotocol() + `://` + pwd + `@${host}:443/?type=ws&host=${host}&security=tls#${host}`, {
status: 200,
headers: {
"Content-Type": "text/plain;charset=utf-8",
Expand Down Expand Up @@ -894,4 +894,4 @@ export {
});
}
}
})();
})();

0 comments on commit fc3daad

Please sign in to comment.