sophuwu.site > manhttpd
oofed some filepath up
fixed tho
sophuwu sophie@skisiel.com
Thu, 11 Apr 2024 13:17:44 +0000
commit

7ef7df02ee6e8e27f569e83ab8169ada30888831

parent

0d587097bcf265a34a39c2ebcfd59c353a28201c

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M main.gomain.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) {