fix: bug fixes

This commit is contained in:
fufsob committed 2026-09-16 08:43:53 +00:00
1 parent 9cdd6dada7
commit 027dc7b1a9
31 files changed
+626 -121

No files matched your search

+5
View File
@@ -107,6 +107,11 @@ def _xray_stream(listener: dict, tag: str) -> dict:
settings["mode"] = transport["mode"]
stream[settings_key] = settings
# Behind a web server the socket address is loopback, which XRay will not record as
# online; the forwarded address is only trusted when one of these headers is present.
if transport.get("trustedXForwardedFor"):
stream["sockopt"] = {"trustedXForwardedFor": transport["trustedXForwardedFor"]}
reality = listener["reality"]
tls = listener["tls"]
if reality["enable"]: