浏览代码

Add Steam LAN Cache to Real IP

SukkaW 2 周之前
父节点
当前提交
0c02e84a68
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Build/build-sgmodule-always-realip.ts

+ 9 - 0
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'