Skip to content

Commit

Permalink
fix hysteria tls
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock committed Feb 26, 2024
1 parent f4a1a04 commit 731c420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parsers/hysteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

1 comment on commit 731c420

@Toperlock
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#58

Please sign in to comment.