fix: numbered cloud region selection

This commit is contained in:
admin 2026-08-03 16:07:41 +00:00
parent 0171438505
commit 30d247c411

View file

@ -196,7 +196,12 @@ def add_node():
if not name: return if not name: return
token = input("Wallarm token: ").strip() token = input("Wallarm token: ").strip()
if not token: print("Token required."); return if not token: print("Token required."); return
cloud = input("Cloud region [EU]: ").strip() or "EU" print("Cloud region:")
print(" [1] EU (api.wallarm.com)")
print(" [2] US (us1.api.wallarm.com)")
c = input("Choose [1]: ").strip()
cloud = "EU" if c == "2" else "EU"
if c == "2": cloud = "US"
port = input("Port [8081]: ").strip() or "8081" port = input("Port [8081]: ").strip() or "8081"
upstream_ip = input("Upstream IP [127.0.0.1]: ").strip() or "127.0.0.1" upstream_ip = input("Upstream IP [127.0.0.1]: ").strip() or "127.0.0.1"
upstream_port = input("Upstream port [80]: ").strip() or "80" upstream_port = input("Upstream port [80]: ").strip() or "80"