From 5d839c11128b11d9388dbdb2d0634507e4e1a043 Mon Sep 17 00:00:00 2001 From: Flowseal Date: Thu, 19 Mar 2026 11:09:07 +0300 Subject: [PATCH] fix for default dc options --- proxy/tg_ws_proxy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/tg_ws_proxy.py b/proxy/tg_ws_proxy.py index 9180986..8bd0c45 100644 --- a/proxy/tg_ws_proxy.py +++ b/proxy/tg_ws_proxy.py @@ -1117,13 +1117,16 @@ def main(): ap.add_argument('--host', type=str, default='127.0.0.1', help='Listen host (default 127.0.0.1)') ap.add_argument('--dc-ip', metavar='DC:IP', action='append', - default=['2:149.154.167.220', '4:149.154.167.220'], + default=[], help='Target IP for a DC, e.g. --dc-ip 1:149.154.175.205' ' --dc-ip 2:149.154.167.220') ap.add_argument('-v', '--verbose', action='store_true', help='Debug logging') args = ap.parse_args() + if not args.dc_ip: + args.dc_ip = ['2:149.154.167.220', '4:149.154.167.220'] + try: dc_opt = parse_dc_ip_list(args.dc_ip) except ValueError as e: