mirror of https://github.com/k3d-io/k3d
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.
16 lines
364 B
16 lines
364 B
3 years ago
|
package hostsfile
|
||
|
|
||
|
var (
|
||
|
HostsPerLine = 9
|
||
|
HostsFilePath = "${SystemRoot}/System32/drivers/etc/hosts"
|
||
|
eol = "\r\n"
|
||
|
)
|
||
|
|
||
6 months ago
|
func (h *Hosts) preFlush() error {
|
||
3 years ago
|
// need to force hosts per line always on windows see https://github.com/goodhosts/hostsfile/issues/18
|
||
|
h.HostsPerLine(HostsPerLine)
|
||
6 months ago
|
return nil
|
||
3 years ago
|
}
|
||
6 months ago
|
|
||
|
func (h *Hosts) postFlush() error { return nil }
|