Commit ae494b7f authored by mwnx's avatar mwnx

Fix ipv6 parser error message ("ip4" → "ip6")

parent f36800af
......@@ -49,7 +49,7 @@ func ip4StB(s string) ([]byte, error) {
func ip6StB(s string) ([]byte, error) {
i := net.ParseIP(s).To16()
if i == nil {
return nil, fmt.Errorf("failed to parse ip4 addr: %s", s)
return nil, fmt.Errorf("failed to parse ip6 addr: %s", s)
}
return i, nil
}
......
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