Little helper to run CNCF's k3s in Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3d/vendor/github.com/goodhosts/hostsfile/os_windows.go

16 lines
364 B

package hostsfile
var (
HostsPerLine = 9
HostsFilePath = "${SystemRoot}/System32/drivers/etc/hosts"
eol = "\r\n"
)
func (h *Hosts) preFlush() error {
// need to force hosts per line always on windows see https://github.com/goodhosts/hostsfile/issues/18
h.HostsPerLine(HostsPerLine)
return nil
}
func (h *Hosts) postFlush() error { return nil }