extra refactoring

This commit is contained in:
FUFSoB committed 2026-04-19 12:09:21 +05:00
1 parent 078367d919
commit 744a769e73
14 files changed
+943 -1230

No files matched your search

+1 -6
View File
@@ -175,12 +175,7 @@ def parse_trojan(url: str, tag: str) -> dict:
def parse_shadowsocks(url: str, tag: str) -> dict:
rest = url[len("ss://"):]
rest, _, _ = rest.partition("#")
userinfo, _, rest = rest.partition("@")
hostpart, _, _ = rest.partition("?")
host, _, port = hostpart.rpartition(":")
userinfo, host, port, _ = _parse_url_parts(url, "ss")
pad = "=" * (-len(userinfo) % 4)
try: