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
|
// Detect OS and set params
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "windows":
|
case "windows":
|
||||||
log.Fatal("Windows is not supported")
|
//log.Fatal("Windows is not supported")
|
||||||
*tmpdir = "C:\\tmp"
|
*tmpdir = "/tmp"
|
||||||
*hostsloc = "C:\\Windows\\System32\\drivers\\etc\\hosts"
|
*hostsloc = "/Windows/System32/drivers/etc/hosts"
|
||||||
|
*cfgloc = "/rhosts.cfg"
|
||||||
case "linux":
|
case "linux":
|
||||||
*tmpdir = "/tmp/"
|
*tmpdir = "/tmp/"
|
||||||
*hostsloc = "/etc/hosts"
|
*hostsloc = "/etc/hosts"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue