Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Oct 10, 2024
1 parent 2ef4022 commit 93646dd
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 33 deletions.
60 changes: 29 additions & 31 deletions _worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/_worker.js → src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4907,7 +4907,6 @@ async function getSingBoxCustomConfig(env, proxySettings, hostName, client, isFr

if (protocol === 'VLESS') {
remark = generateRemark(proxyIndex, port, addr, cleanIPs, protocol, configType);
path = `/${getRandomPath(16)}${proxyIP ? `/${btoa(proxyIP)}` : ''}`;
VLESSOutbound = buildSingBoxVLESSOutbound (
proxySettings,
chainProxyOutbound ? `proxy-${proxyIndex}` : remark,
Expand All @@ -4923,7 +4922,6 @@ async function getSingBoxCustomConfig(env, proxySettings, hostName, client, isFr

if (protocol === 'Trojan') {
remark = generateRemark(proxyIndex, port, addr, cleanIPs, protocol, configType);
path = `/tr${getRandomPath(16)}${proxyIP ? `/${btoa(proxyIP)}` : ''}`;
TrojanOutbound = buildSingBoxTrojanOutbound (
proxySettings,
chainProxyOutbound ? `proxy-${proxyIndex}` : remark,
Expand Down

0 comments on commit 93646dd

Please sign in to comment.