mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-02 13:03:11 +00:00
Fix ipv6 parser error message ("ip4" → "ip6")
This commit is contained in:
parent
f36800afeb
commit
ae494b7f0c
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user