From: SourceForge.net <no...@so...> - 2011-09-20 21:30:29
|
Bugs item #3405673, was opened at 2011-09-07 20:00 Message generated for change (Comment added) made by avpak You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=532251&aid=3405673&group_id=71730 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: HPI Clients Group: 3.0.0 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Anton Pak (avpak) >Assigned to: Anton Pak (avpak) Summary: client -N "IPv6 address" Initial Comment: Seems -N option handling does not work correctly for IPv6 addresses. The IPv6 address uses ":" as a delimiter. For example fe80::217:31ff:fe55:8d64 or ::1 (localhost). And hpi clients tries to parse -N option as host:port so for ::1 we get NULL host and port 1 instead of ::1 host and default port. ---------------------------------------------------------------------- >Comment By: Anton Pak (avpak) Date: 2011-09-21 01:30 Message: RFC 3986 suggest way A. Fixed in trunk (rev. #7356) ---------------------------------------------------------------------- Comment By: Ulich Kleber (ulikleber) Date: 2011-09-08 16:08 Message: OK. We need to define syntax for -N option then. I see to ways to go: A: clients can distinguish between IPv6 address and host:port. This can be achieved by using the same syntax as IPv6 uses for URI: [IPv6-address]:port B: we change the options to only specify the host address in -N parameter and have a separate paramter (e.g. -P) for port. So in case of A, clients would assume anything between "[ ]" to be IPv6 address, and anything with more than one colon (":") to be IPv6 address. A string with exactly one colon would be assumed an IPv4:port format. In case of B, we would break compatibility. Which way should we go? Uli ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=532251&aid=3405673&group_id=71730 |