From 30d247c411d3722445dbd483b5728bdfa5118eb2 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 3 Aug 2026 16:07:41 +0000 Subject: [PATCH] fix: numbered cloud region selection --- sources/python/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sources/python/main.py b/sources/python/main.py index e14a263..1274849 100644 --- a/sources/python/main.py +++ b/sources/python/main.py @@ -196,7 +196,12 @@ def add_node(): if not name: return token = input("Wallarm token: ").strip() 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" upstream_ip = input("Upstream IP [127.0.0.1]: ").strip() or "127.0.0.1" upstream_port = input("Upstream port [80]: ").strip() or "80"