Project

General

Profile

Actions

Bug #1635

closed

FaceUri does not recognize IPv4-mapped IPv6 address

Added by Wentao Shang almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Core
Target version:
Start date:
05/21/2014
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

FaceURI: wsclient://[::ffff:76.90.11.239]:56366

Expected: no error, wsclient://76.90.11.239:56366 is constructed

Actual: Malformed URI: wsclient://[::ffff:76.90.11.239]: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:76.90.11.239]: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.

Actions

Also available in: Atom PDF