Skip to content

Commit

Permalink
Update hysteria2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock authored Dec 8, 2023
1 parent 3158b1c commit f80f806
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parsers/hysteria2.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ def parse(data):
(k, v if len(v) > 1 else v[0])
for k, v in parse_qs(server_info.query).items()
)
if server_info.path:
server_info = server_info._replace(netloc=server_info.netloc + server_info.path, path="")
node = {
'tag': unquote(server_info.fragment) or tool.genName()+'_hysteria2',
'type': 'hysteria2',
Expand Down

0 comments on commit f80f806

Please sign in to comment.