refactor: overhaul of options and features

Includes, but not limited to:
- zapret2 support
- declarative inbounds
- proxy-ctl revamp
- automatic proxy learning
This commit is contained in:
FUFSoB committed 2026-09-13 22:37:45 +05:00
1 parent b892384527
commit fdb2b08790
144 files changed
+13198 -14066

No files matched your search

+5
View File
@@ -212,6 +212,11 @@ def build_outbound(
def fetch_raw(url: str) -> bytes:
# urlopen also speaks file:, ftp: and data:. This runs as root over a URL that
# reaches it from a group-writable spool, so only the two a subscription is
# ever served over.
if urllib.parse.urlsplit(url).scheme not in ("http", "https"):
raise ValueError("subscription URL must be http:// or https://")
request = urllib.request.Request(
url,
headers={"User-Agent": "v2rayN/6.0"},