mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-20 01:00:56 +00:00
13 lines
246 B
Go
13 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"
|
|
}
|
|
}
|