Skip to content

Commit

Permalink
fix hysteria2 obfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock authored Oct 13, 2023
1 parent 4cc60d2 commit 7466039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsers/hysteria2.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def parse(data):
if netquery.get('insecure') and netquery['insecure'] == '1' or netquery.get('allowInsecure') and netquery['allowInsecure'] == '1':
node['tls']['insecure'] = True
node['tls']['alpn'] = (netquery.get('alpn') or "h3").strip('{}').split(',')
if netquery.get('obfs'):
if netquery.get('obfs') != 'none':
node['obfs'] = {
'type': netquery['obfs'],
'password': netquery['obfs-password'],
Expand Down

0 comments on commit 7466039

Please sign in to comment.