Fix up incorrect output formatting

This commit is contained in:
Bryan Boreham committed 2020-07-31 09:03:27 +00:00
1 parent 00bc020498
commit c197624689
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -204,6 +204,6 @@ func (alloc *Allocator) HandleHTTP(router *mux.Router, defaultSubnet address.CID
if alloc.tracker != nil {
tracker = alloc.tracker.String()
}
fmt.Fprintf(w, tracker)
fmt.Fprintln(w, tracker)
})
}
+1 -1
View File
@@ -91,7 +91,7 @@ func (s *State) serveClientIP(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
}
fmt.Fprintf(w, host)
fmt.Fprintln(w, host)
}
// serveRead writes our json encoded state