fix: 修复多 IP 时 AnyIP 域名全部相同的问题,每个 IP 生成各自的域名

This commit is contained in:
2026-03-01 04:53:53 +08:00
parent 2dbc916652
commit c4ea49b0a3

View File

@@ -81,8 +81,8 @@ func main() {
fmt.Println(" 地址:") fmt.Println(" 地址:")
for _, ip := range lanIPs { for _, ip := range lanIPs {
h := ip h := ip
if tlsResult != nil { if tlsResult != nil && tlsResult.AnyIP {
h = tlsResult.Host h = vpTLS.AnyIPHost(ip)
} }
fmt.Printf(" - %s\n", buildURL(scheme, h, cfg.Server.Port, token)) fmt.Printf(" - %s\n", buildURL(scheme, h, cfg.Server.Port, token))
} }