FaceUri does not recognize IPv4-mapped IPv6 address
Expected: no error,
wsclient://220.127.116.11:56366 is constructed
Malformed URI: wsclient://[::ffff:18.104.22.168]:56366
FaceUri should treat an IPv6 endpoint containing IPv4-mapped IPv6 address as the corresponding IPv4 endpoint (eg. When scheme is not specified, "tcp4" should be chosen instead of "tcp6")
Problem was discovered when using WebSocket faces.
1400690340.435746 FATAL: [NFD] Malformed URI: wsclient://[::ffff:22.214.171.124]:56366
This happens when NFD is running dual-stack WebSocket while the client is from IPv4. A temporary fix is to disable IPv6 for WebSocket faces.
#3 Updated by Junxiao Shi over 5 years ago
- Subject changed from FaceUri does not recognize ipv4-mapped ipv6 address to FaceUri does not recognize IPv4-mapped IPv6 address
- Description updated (diff)
WebSocket++ using IPv4-mapped IPv6 addresses implies that IPv4 connectivity is not available on FreeBSD because IPv4-mapped IPv6 is disabled by default.