You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt"
"net"
)
func main() {
ip := net.ParseIP("1.1") // this is nil
if ip.To4() == nil {
fmt.Printf("%v is not an IPv4 address", ip)
}
}
It appears to be part of the POSIX specification, but not part of an RFC, but it still has a lot of uses (ping 127.1, https://1.1, etc) and is generally available in POSIX operating systems.
See #36822 (comment) for more discussion.
It appears to be part of the POSIX specification, but not part of an RFC, but it still has a lot of uses (
ping 127.1
, https://1.1, etc) and is generally available in POSIX operating systems.http://man7.org/linux/man-pages/man3/inet_addr.3.html
net
being unable to expand IPv4's may also be the root cause behind #36822.The text was updated successfully, but these errors were encountered: