From 6cab1d93f9b292bd36b2e468343c95c61bea1362 Mon Sep 17 00:00:00 2001 From: Toperlock <861705708@qq.com> Date: Mon, 30 Dec 2024 15:15:54 +0800 Subject: [PATCH] fix port hopping --- parsers/hysteria2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/hysteria2.py b/parsers/hysteria2.py index 54abab6e6..45284ecd3 100644 --- a/parsers/hysteria2.py +++ b/parsers/hysteria2.py @@ -27,7 +27,7 @@ def parse(data): } } if ports_match: - node['server_ports'] = [ports_match.group(1)] + node['server_ports'] = [ports_match.group(1).replace('-', ':')] if netquery.get('insecure') in ['1', 'true'] or netquery.get('allowInsecure') == '1': node['tls']['insecure'] = True if node['tls']['server_name'] == '':