From ce6e30c09efebf9860075ea80aa9ffc3a0ad6ac6 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 21 May 2015 00:40:58 -0600 Subject: [PATCH] Lil' bit of godoc --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index fb000518..84d81745 100644 --- a/main.go +++ b/main.go @@ -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.") }