mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-05 18:44:58 +03:00
Lil' bit of godoc
This commit is contained in:
parent
ee754b4a47
commit
ce6e30c09e
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -115,6 +115,7 @@ func main() {
|
||||||
app.Wg.Wait()
|
app.Wg.Wait()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// isLocalhost returns true if the string looks explicitly like a localhost address.
|
||||||
func isLocalhost(s string) bool {
|
func isLocalhost(s string) bool {
|
||||||
return s == "localhost" || s == "::1" || strings.HasPrefix(s, "127.")
|
return s == "localhost" || s == "::1" || strings.HasPrefix(s, "127.")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue