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"