Skip to content

Commit

Permalink
change host url to random
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye authored Jan 14, 2024
1 parent fd2e56b commit 04d0601
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion submanager/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import json
import time
import random
import string
import shutil
import requests
import datetime
Expand Down Expand Up @@ -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:],
}
Expand Down

0 comments on commit 04d0601

Please sign in to comment.