Skip to content

Commit

Permalink
Revised build flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Nov 24, 2024
1 parent cf221ff commit a9c4684
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Build project
run: |
npx wrangler deploy src/worker.js --name bpb-worker-panel --compatibility-flag [nodejs_compat] --compatibility-date 2024-10-26 --dry-run --outdir=dist
javascript-obfuscator dist/worker.js --output _worker.js
npx javascript-obfuscator dist/worker.js --output _worker.js
- name: Commit and push built worker
run: |
Expand Down
4 changes: 2 additions & 2 deletions src/cores-configs/normalConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ export async function getNormalConfigs(request, env) {
: '&security=none';

if (vlessConfigs) {
vlessConfs += `${atob('dmxlc3M')}://${userID}@${addr}:${port}?path=/${path}&encryption=none&host=${host}&type=ws${tlsFields}#${vlessRemark}\n`;
vlessConfs += `vless://${userID}@${addr}:${port}?path=/${path}&encryption=none&host=${host}&type=ws${tlsFields}#${vlessRemark}\n`;
}

if (trojanConfigs) {
trojanConfs += `${atob('dHJvamFu')}://${trojanPass}@${addr}:${port}?path=/tr${path}&host=${host}&type=ws${tlsFields}#${trojanRemark}\n`;
trojanConfs += `trojan://${trojanPass}@${addr}:${port}?path=/tr${path}&host=${host}&type=ws${tlsFields}#${trojanRemark}\n`;
}

proxyIndex++;
Expand Down

0 comments on commit a9c4684

Please sign in to comment.