mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-22 07:13:30 +03:00
Add hosts transport & Remove bad linkname usages
This commit is contained in:
8
dns/transport/hosts/hosts_windows.go
Normal file
8
dns/transport/hosts/hosts_windows.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package hosts
|
||||
|
||||
import _ "unsafe"
|
||||
|
||||
var DefaultPath = getSystemDirectory() + "/Drivers/etc/hosts"
|
||||
|
||||
//go:linkname getSystemDirectory internal/syscall/windows.GetSystemDirectory
|
||||
func getSystemDirectory() string
|
||||
Reference in New Issue
Block a user