8e449c85318b31ef8cf225d477fd4c9efaa4a0a0
DetectGeoWithServer was doing GeoIP-first (DNS lookup per node) then falling back to name regex. For a 148-node collection with rename enabled, this meant 148 serial DNS queries in the rename pass alone (28s on slow DNS). Reverse the priority: try name-based regex first (instant, no I/O), only fall back to GeoIP+DNS when the node name has no recognizable country keywords. Most proxy names already contain country/city info. Also add in-memory DNS cache in geoip.LookupHost so repeated lookups for the same hostname don't re-resolve. Collection preview with rename: 30s -> 3s.
Description
Sub-Store: 订阅转换与管理工具 (Go + sing-box/clash 模板支持)
741 KiB
Languages
Go
90.2%
Vue
7.3%
JavaScript
1.1%
Shell
1.1%
Dockerfile
0.2%