summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-06 16:34:16 -0500
committerJeff Carr <[email protected]>2024-10-06 16:34:16 -0500
commit99f38da618967ae8de2a373c05318ea16a6162d2 (patch)
tree84a1d5d12fc74e9f17d23108e12a632bfdf56751 /main.go
parentfa6dce4c566b35b36155504ad9a627961dbfe3f6 (diff)
add powerpaneld
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 6cb9384..2f594f4 100644
--- a/main.go
+++ b/main.go
@@ -98,7 +98,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
// used for uptime monitor checking
if tmp == "/uptime" {
- fmt.Fprintln(w, "OK")
+ writeFile(w, "uptime.html")
return
}
log.Warn("BAD URL =", url, "REPO URL =", repourl)
@@ -149,8 +149,8 @@ func main() {
// }
log.Println("found log =", versionMap["go.wit.com/log"])
http.HandleFunc("/", okHandler)
- go https()
- err := http.ListenAndServe(":80", nil)
+ // go https()
+ err := http.ListenAndServe(":2520", nil)
if err != nil {
log.Println("Error starting server:", err)
}