mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-16 06:01:21 +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"
|
||
|
}
|
||
|
}
|