Enabled Windows
Windows is still not ready fro prime time, but it does functionstable
parent
6a5b2b7363
commit
006ea0aa11
|
|
@ -108,9 +108,10 @@ func sysdetect (tmpdir, hostsloc, cfgloc *string) {
|
|||
// Detect OS and set params
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
log.Fatal("Windows is not supported")
|
||||
*tmpdir = "C:\\tmp"
|
||||
*hostsloc = "C:\\Windows\\System32\\drivers\\etc\\hosts"
|
||||
//log.Fatal("Windows is not supported")
|
||||
*tmpdir = "/tmp"
|
||||
*hostsloc = "/Windows/System32/drivers/etc/hosts"
|
||||
*cfgloc = "/rhosts.cfg"
|
||||
case "linux":
|
||||
*tmpdir = "/tmp/"
|
||||
*hostsloc = "/etc/hosts"
|
||||
|
|
|
|||
Loading…
Reference in New Issue