oofed some filepath up fixed tho
sophuwu sophie@skisiel.com
Thu, 11 Apr 2024 13:17:44 +0000
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
main.go
→
main.go
@@ -36,7 +36,7 @@ if CFG.Mandoc == "" {
log.Fatal("Fatal: no mandoc `apt-get install mandoc`") } } else { - CFG.Mandoc=string(b) + CFG.Mandoc=strings.TrimSpace(string(b)) } //CFG.Mandoc = "/home/sophie/.local/bin/mandoc" CFG.Addr = os.Getenv("ListenPort")@@ -60,7 +60,7 @@ w.WriteHeader(http.StatusOK)
w.Write(favicon) }) http.HandleFunc("/", indexHandler) - http.ListenAndServe(":"+CFG.Addr, nil) + http.ListenAndServe("0.0.0.0:"+CFG.Addr, nil) } func WriteHtml(w http.ResponseWriter, r *http.Request, title, html string) {