mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 21:54:13 +08:00
20 lines
459 B
Go
20 lines
459 B
Go
//go:build badlinkname
|
|
|
|
package local
|
|
|
|
import (
|
|
_ "unsafe"
|
|
)
|
|
|
|
//go:linkname getSystemDNSConfig net.getSystemDNSConfig
|
|
func getSystemDNSConfig() *dnsConfig
|
|
|
|
//go:linkname nameList net.(*dnsConfig).nameList
|
|
func nameList(c *dnsConfig, name string) []string
|
|
|
|
//go:linkname lookupStaticHost net.lookupStaticHost
|
|
func lookupStaticHost(host string) ([]string, string)
|
|
|
|
//go:linkname splitHostZone net.splitHostZone
|
|
func splitHostZone(s string) (host, zone string)
|