From 0c02e84a68bc5833f6f746b51bdb1a52b52dc379 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Mon, 9 Mar 2026 22:58:14 +0800 Subject: [PATCH] Add Steam LAN Cache to Real IP --- Build/build-sgmodule-always-realip.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Build/build-sgmodule-always-realip.ts b/Build/build-sgmodule-always-realip.ts index 2d81a800..9c2bb1d8 100644 --- a/Build/build-sgmodule-always-realip.ts +++ b/Build/build-sgmodule-always-realip.ts @@ -27,6 +27,15 @@ const HOSTNAMES = [ '*.stun.twilio.com', 'stun.syncthing.net', 'stun.*', + // Steam LAN Cache + // + // Steam will DNS lookup this domain, trying to find Local LAN Cache server + // If one is found, Steam client will try to connect with this IP with original CDN domain in + // HTTP Host header, while in HTTP plain HTTP/1.1. It is up to the HTTP server to handle this. + // + // By having lancache.steamcontent.com in Real IP, we can avoid Steam client accidentally mistaking + // the Fake IP as a local LAN cache. This also helps real LAN cache to work properly. + 'lancache.steamcontent.com', // 'controlplane.tailscale.com', // NTP // 'time.*.com', 'time.*.gov', 'time.*.edu.cn', 'time.*.apple.com', 'time?.*.com', 'ntp.*.com', 'ntp?.*.com', '*.time.edu.cn', '*.ntp.org.cn', '*.pool.ntp.org'