From 006ea0aa1142365900cd1bbeb722a23e774d7191 Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Sat, 26 Feb 2022 21:06:09 -0600 Subject: [PATCH] Enabled Windows Windows is still not ready fro prime time, but it does function --- src/rhosts.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rhosts.go b/src/rhosts.go index 3f99d8c..f8fac95 100644 --- a/src/rhosts.go +++ b/src/rhosts.go @@ -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"