(host string)
| 225 | } |
| 226 | |
| 227 | func isLoopbackHost(host string) bool { |
| 228 | if strings.EqualFold(host, "localhost") { |
| 229 | return true |
| 230 | } |
| 231 | ip := net.ParseIP(host) |
| 232 | return ip != nil && ip.IsLoopback() |
| 233 | } |
| 234 | |
| 235 | func isWildcardHost(host string) bool { |
| 236 | switch host { |
no outgoing calls