Enabled Windows

Windows is still not ready fro prime time, but it does function
stable
Justin Reichardt 2022-02-26 21:06:09 -06:00
parent 6a5b2b7363
commit 006ea0aa11
1 changed files with 4 additions and 3 deletions

View File

@ -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"