Add fallback local DNS server for iOS

This commit is contained in:
世界
2025-02-20 17:18:47 +08:00
parent cc294c4616
commit 05fea2a199
11 changed files with 293 additions and 45 deletions

View File

@@ -69,9 +69,6 @@ func dnsReadConfig(_ string) *dnsConfig {
return conf
}
//go:linkname defaultNS net.defaultNS
var defaultNS []string
func adapterAddresses() ([]*windows.IpAdapterAddresses, error) {
var b []byte
l := uint32(15000) // recommended initial size