From 258973948e790bc66c6970d2cddfcec4d6194095 Mon Sep 17 00:00:00 2001 From: Anthony <1091822+CrazyB0y@users.noreply.github.com> Date: Wed, 4 Mar 2026 18:50:22 +0300 Subject: [PATCH] Add ability to customize port in tester.py --- python_v2ray/tester.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_v2ray/tester.py b/python_v2ray/tester.py index 79de076..90b3be5 100644 --- a/python_v2ray/tester.py +++ b/python_v2ray/tester.py @@ -31,7 +31,7 @@ def wrapper(self: "ConnectionTester", parsed_params: List[ConfigParams], **kwarg if not parsed_params: return [] logging.info(f"Orchestrating proxies for '{func.__name__}'...") - base_port = 20800 + base_port = kwargs.get("base_port", 20800) jobs_to_run = [] proxies_to_manage = [] xray_params_to_merge = [] @@ -302,3 +302,4 @@ def _test_individual_clients( ) ip_counter += 1 return self._run_go_tester(test_jobs, timeout) +