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

Commit

Permalink
[Fix] fix json load file error
Browse files Browse the repository at this point in the history
  • Loading branch information
bzd111 committed Aug 5, 2019
1 parent 8459f78 commit b160bf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,14 @@ def gen_ssl():

result = os.path.exists("/root/.acme.sh/{0}/fullchain.cer".format(domain))
start_service()
if result == True:
if result is True:
return "True"
else:
return "False"


with open("v2ray.config") as f:
data = json.loads(f)
data = json.load(f)

if data['tls'] == "on" and panel_config['use_ssl'] == "on":
key_file = "/root/.acme.sh/{0}/{0}.key".format(data['domain'],
Expand Down

0 comments on commit b160bf4

Please sign in to comment.