Add fallback local DNS server for iOS

This commit is contained in:
世界
2025-02-20 17:18:47 +08:00
parent 5c4211e849
commit 9a5f69f435
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