Skip to content

Commit

Permalink
fix host url error
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Dec 19, 2023
1 parent 07adc8d commit c70a06f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions submanager/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@
LOGIN_URL = os.environ.get("LOGIN_URL")
INBOUND_URL = os.environ.get("INBOUND_URL")

if USERNAME is None or PASSWORD is None or LOGIN_URL is None or INBOUND_URL is None or HOST_URL is None:
if (
USERNAME is None
or PASSWORD is None
or LOGIN_URL is None
or INBOUND_URL is None
or HOST_URL is None
):
print("Environment variables not fulfilled")


Expand All @@ -46,7 +52,7 @@ def get_credentials():
client = {
"name": inbound["remark"],
"uuid": uuid,
"host": uuid[0:5] + HOST_URL,
"host": uuid[0:5] + "." + HOST_URL,
"port": str(inbound["port"]),
"path": json.loads(inbound["streamSettings"])["wsSettings"]["path"][1:],
}
Expand Down

0 comments on commit c70a06f

Please sign in to comment.