From ae494b7f0c44c90dec43ab60bec92381784fcb09 Mon Sep 17 00:00:00 2001 From: mwnx Date: Sun, 20 May 2018 00:21:29 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20ipv6=20parser=20error=20message=20("ip4"?= =?UTF-8?q?=20=E2=86=92=20"ip6")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- transcoders.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }