mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-08-04 12:55:17 +03:00
refactor: DNS
This commit is contained in:
19
dns/transport/local/local_badlinkname.go
Normal file
19
dns/transport/local/local_badlinkname.go
Normal file
@@ -0,0 +1,19 @@
|
||||
//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)
|
||||
Reference in New Issue
Block a user