Lil' bit of godoc

This commit is contained in:
Matthew Holt 2015-05-21 00:40:58 -06:00
parent ee754b4a47
commit ce6e30c09e

View file

@ -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.")
}