mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 21:51:23 +08:00
14 lines
246 B
Go
14 lines
246 B
Go
package hosts
|
|
|
|
// this file copy and modify from golang's std net/hook_windows.go
|
|
|
|
import (
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
func init() {
|
|
if dir, err := windows.GetSystemDirectory(); err == nil {
|
|
hostsFilePath = dir + "/Drivers/etc/hosts"
|
|
}
|
|
}
|