From c70a06f7e12eb8cdaf89f2b7d7c72622daf37159 Mon Sep 17 00:00:00 2001 From: sgrtye Date: Tue, 19 Dec 2023 18:22:31 +0000 Subject: [PATCH] fix host url error --- submanager/main.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/submanager/main.py b/submanager/main.py index 72491a7..e68dc35 100644 --- a/submanager/main.py +++ b/submanager/main.py @@ -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") @@ -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:], }