Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 20, 2024
2 parents c61a3c0 + 3aeda1c commit 2e77534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parsers/hysteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def parse(data):
'tag': unquote(server_info.fragment) or tool.genName()+'_hysteria',
'type': 'hysteria',
'server': re.sub(r"\[|\]", "", server_info.netloc.rsplit(":", 1)[0]),
'server_port': int(server_info.netloc.rsplit(":", 1)[1]),
'server_port': int((server_info.netloc.rsplit(":", 1)[1]).split(",", 1)[0]), #fuck all
'up_mbps': int(re.search(r'\d+', netquery.get('upmbps', '10')).group()),
'down_mbps': int(re.search(r'\d+', netquery.get('downmbps', '100')).group()),
'auth_str': netquery.get('auth', ''),
Expand Down

0 comments on commit 2e77534

Please sign in to comment.