diff --git a/transcoders.go b/transcoders.go index f6739ed..7f7f645 100644 --- a/transcoders.go +++ b/transcoders.go @@ -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 }