Files
sing-box-extended-mirror/dns/transport/hosts/hosts_windows.go
T
2026-08-30 17:41:39 +08:00

17 lines
305 B
Go

package hosts
import (
"path/filepath"
"sync"
"golang.org/x/sys/windows"
)
var defaultPath = sync.OnceValues(func() (string, error) {
systemDirectory, err := windows.GetSystemDirectory()
if err != nil {
return "", err
}
return filepath.Join(systemDirectory, "Drivers", "etc", "hosts"), nil
})