Commit ce6e30c0 authored by Matthew Holt's avatar Matthew Holt

Lil' bit of godoc

parent ee754b4a
......@@ -115,6 +115,7 @@ func main() {
app.Wg.Wait()
}
// isLocalhost returns true if the string looks explicitly like a localhost address.
func isLocalhost(s string) bool {
return s == "localhost" || s == "::1" || strings.HasPrefix(s, "127.")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment