On Thu, 2012-11-15 at 16:33 +0100, Emmanuel Bourg wrote:
> Le 15/11/2012 16:22, Andrew Stitcher a écrit :
> 
> > * A literal IP address - IPv6 literal addresses should be enclosed in 
> > '['...']'
> 
> Is the enclosing for IPv6 addresses really necessary? It should be
> possible to guess the type reliably from the input value (either
> xxx.xxx.xxx.xxx for IPv4, otherwise it's IPv6).

Unfortunately it will be necessary for the "port" syntax that's coming
in the next part of the work.

This will use ':' to signify the port to listen to so that IPv6
addresses might become ambiguous ie fe80::456:4564:67 - is that address
fe80::456:4564 and port 67 or address fe80::456:4564:67 with the default
ports. So I decided to use the same solution that the url spec does as
it is (or should be) well known [fe80::456:4564]:67 or
[fe80::456:4564:67].

In the current code the '[',']' as actually just stripped away, but in
the next phase we will search for the port following a ':'.

Note that as you can also specify a DNS name for the interface addresses
too, in which case you will get all the addresses that name refers to
(IPv4 or v6).



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to