fork: REALITY client must carry shortId; default camo moved off www.microsoft.com

Verified 22.11.2026 (xray 26.7.28 + 26.11.9, matrix of 4 version pairs):
- REALITY authenticates fine both directions ONLY when the client
  realitySettings includes "shortId"; without it the server silently
  falls back to passthrough ("received real certificate").
- dest www.microsoft.com is broken for REALITY MITM (Microsoft now
  serves post-quantum cert chains); www.cloudflare.com / www.apple.com /
  www.google.com / download.windowsupdate.com / www.jetbrains.com all work.
- hub transport: expose shortId in summary/payload/uci line; agent reads
  uci reality_short_id and emits "shortId" in realitySettings.

NOTE: new tag-form VLESS reverse (Rvs, PR #5101) does NOT register its
control connection when the bridge transport is REALITY on xray >= 26.7
(portal logs show handshake auth OK but no v1.rvs.cool request;
security=none works). See XTLS/Xray-core #6242 #6248. Reverse-over-REALITY
e2e therefore blocked pending core-version bisect (26.4.25) or upstream fix.
This commit is contained in:
cyril committed 2026-11-22 12:15:22 +03:00
1 parent 9b7a89257b
commit d482ed97c4
4 files changed
+88 -2

No files matched your search

+9 -1
View File
@@ -121,7 +121,12 @@ DEFAULT_VLESS_PORT = int(os.environ.get("OWRT_REMOTE_VLESS_PORT", "8443"))
# no CA-issued certificates, no renewal. Per-router UUIDs still authenticate.
# Set OWRT_REMOTE_TRANSPORT=none to fall back to upstream behavior.
TRANSPORT_MODE = os.environ.get("OWRT_REMOTE_TRANSPORT", "reality").strip().lower()
REALITY_DEST = os.environ.get("OWRT_REMOTE_REALITY_DEST", "www.microsoft.com").strip()
# NOTE: do NOT default to www.microsoft.com — Microsoft now serves post-quantum
# (ML-DSA) cert chains and REALITY cannot re-sign them; the handshake silently
# falls back to passthrough ("received real certificate"). Verified working
# 22.11.2026 (xray 26.7.28 + 26.11.9, any direction): www.cloudflare.com,
# www.apple.com, www.google.com, download.windowsupdate.com, www.jetbrains.com.
REALITY_DEST = os.environ.get("OWRT_REMOTE_REALITY_DEST", "www.cloudflare.com").strip()
REALITY_FINGERPRINT = os.environ.get("OWRT_REMOTE_REALITY_FINGERPRINT", "chrome").strip()
TRANSPORT_FILE = STATE_DIR / "transport.json"
XRAY_BINARY = os.environ.get("OWRT_REMOTE_XRAY_BINARY", "/usr/local/bin/xray")
@@ -4686,6 +4691,7 @@ def transport_public_summary():
return {
"mode": "reality",
"publicKey": profile["publicKey"],
"shortId": profile["shortId"],
"serverName": profile["serverName"],
"fingerprint": profile.get("fingerprint", "chrome"),
}
@@ -4721,6 +4727,7 @@ def transport_client_stream():
"fingerprint": profile.get("fingerprint", "chrome"),
"serverName": profile["serverName"],
"publicKey": profile["publicKey"],
"shortId": profile["shortId"],
},
}
@@ -5064,6 +5071,7 @@ def build_openwrt_config_payload(row, hub_url, vps_host_override="", public_url_
if profile.get("mode") == "reality":
payload["security"] = "reality"
payload["reality_public_key"] = profile["publicKey"]
payload["reality_short_id"] = profile["shortId"]
payload["reality_server_name"] = profile["serverName"]
payload["reality_fingerprint"] = profile.get("fingerprint", "chrome")
return payload