Skip to content

extract wlb contract per instance - #2

Merged
fkzys merged 2 commits into
mainfrom
refactor/wlb-per-instance
Sep 15, 2026
Merged

fkzys merged 2 commits into
mainfrom
refactor/wlb-per-instance

Conversation

@fkzys

@fkzys fkzys commented Sep 14, 2026

Copy link
Copy Markdown
Owner
  • Extracted whitelist-bypass bot logic into a shared lib/wlb.py, removing duplication from deploy-relay.py.
  • wlb can now be enabled on any instance: proxy nodes (instances, deploy.py) and relay nodes (relay_instances, deploy-relay.py).
  • Supported forms: wlb: false/absent, wlb: true, and wlb: {dict} merged over the shared top-level wlb: block.
  • Added wlb.direct (bool): true disables UPSTREAM_SOCKS and the wlb_socks_in socks inbound, making the joiner's traffic go directly from the bot's IP; false/absent keeps routing through the local sing-box SOCKS.
  • Updated templates server_inbounds.json.j2 and wlb_bot.container.j2, README, example secrets, and tests (test_deploy.py, test_deploy_relay.py).

Why: make wlb universal across node types, remove duplication, and allow controlling whether traffic goes through local sing-box or directly.

@fkzys
fkzys merged commit 36d8726 into main Sep 15, 2026
2 checks passed
@fkzys
fkzys deleted the refactor/wlb-per-instance branch September 15, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant