From 04d06014a0dbc7a11f93d231a455550454f66693 Mon Sep 17 00:00:00 2001 From: sgrtye <55668018+sgrtye@users.noreply.github.com> Date: Sun, 14 Jan 2024 11:23:59 +0000 Subject: [PATCH] change host url to random --- submanager/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/submanager/main.py b/submanager/main.py index d777155..e028ee0 100644 --- a/submanager/main.py +++ b/submanager/main.py @@ -1,6 +1,8 @@ import os import json import time +import random +import string import shutil import requests import datetime @@ -53,7 +55,7 @@ def get_credentials(): client = { "name": inbound["remark"], "uuid": uuid, - "host": uuid[0:5] + "." + HOST_URL, + "host": "".join(random.choice(string.ascii_lowercase) for _ in range(5)) + "." + HOST_URL, "port": str(inbound["port"]), "path": json.loads(inbound["streamSettings"])["wsSettings"]["path"][1:], }