Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #19 from coiby/patch-1
Browse files Browse the repository at this point in the history
修正path解析问题
  • Loading branch information
jiangxufeng committed Nov 15, 2019
2 parents 15f5bf4 + 4b6143a commit 90f2e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2rayL-GUI/sub2conf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def b642conf(self, prot, tp, b64str):
:return:
"""
if prot == "vmess":
ret = ast.literal_eval(parse.unquote(base64.b64decode(b64str).decode()))
ret = json.loads(parse.unquote(base64.b64decode(b64str).decode()).replace("\'", "\""))
region = ret['ps']

elif prot == "shadowsocks":
Expand Down Expand Up @@ -318,4 +318,4 @@ def __init__(self, *args):
# # t = base64.b64decode("ewoidiI6ICIyIiwKInBzIjogIjIzM3YyLmNvbV8xNDIuOTMuNTAuNzgiLAoiYWRkIjogIjE0Mi45My41MC43OCIsCiJwb3J0IjogIjM5Mzk4IiwKImlkIjogIjc1Y2JmYzI0LTZhNjAtNDBmMC05Yjc2LTUyMTlmNTIwYTJlMCIsCiJhaWQiOiAiMjMzIiwKIm5ldCI6ICJrY3AiLAoidHlwZSI6ICJ1dHAiLAoiaG9zdCI6ICIiLAoicGF0aCI6ICIiLAoidGxzIjogIiIKfQo=").decode().strip()
# # print(t)
#
# b642conf("ss", "YWVzLTI1Ni1jZmI6NTQxNjAzNDY2QDE0Mi45My41MC43ODo5ODk4#ss")
# b642conf("ss", "YWVzLTI1Ni1jZmI6NTQxNjAzNDY2QDE0Mi45My41MC43ODo5ODk4#ss")

0 comments on commit 90f2e8e

Please sign in to comment.