Skip to content

Commit

Permalink
fix hysteria2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock authored Nov 1, 2023
1 parent 1b8dff0 commit 340a47d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsers/hysteria2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def parse(data):
'server': re.sub(r"\[|\]", "", server_info.netloc.split("@")[1].rsplit(":", 1)[0]),
'server_port': int(server_info.netloc.rsplit(":", 1)[1].split(",")[0]),
"password": server_info.netloc.split("@")[0].rsplit(":", 1)[-1],
'up_mbps': int(netquery.get('upmbps', '10')),
'down_mbps': int(netquery.get('downmbps', '50')),
'up_mbps': int(netquery.get('upmbps', '10').split('M')[0]),
'down_mbps': int(netquery.get('downmbps', '50').split('M')[0]),
'tls': {
'enabled': True,
'server_name': netquery.get('sni', re.sub(r"\[|\]", "", server_info.netloc.split("@")[1].rsplit(":", 1)[0]))
Expand Down

0 comments on commit 340a47d

Please sign in to comment.