From 731c420c54929f13e01972b95362a4fe36ccc367 Mon Sep 17 00:00:00 2001 From: Toperlock <861705708@qq.com> Date: Mon, 26 Feb 2024 16:21:45 +0800 Subject: [PATCH] fix hysteria tls --- parsers/hysteria.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parsers/hysteria.py b/parsers/hysteria.py index 148a4f037..d4eb68a5f 100644 --- a/parsers/hysteria.py +++ b/parsers/hysteria.py @@ -22,7 +22,8 @@ def parse(data): 'insecure': False } } - node['tls']['alpn'] = (netquery.get('alpn') or "h3").strip('{}').split(',') + if netquery.get('alpn'): + node['tls']['alpn'] = netquery['alpn'].strip('{}').split(',') if netquery.get('insecure') == '1' or netquery.get('allowInsecure') == '1': node['tls']['insecure'] = True if netquery.get('obfs') and netquery['obfs'] != 'none':