users@servlet-spec.java.net

[servlet-spec users] Re: [97-getServerNameAndIPv6] Discussion

From: Greg Wilkins <gregw_at_intalio.com>
Date: Thu, 31 Jul 2014 07:47:47 +1000

On 31 July 2014 06:21, Edward Burns <edward.burns_at_oracle.com> wrote:

> To be clear, the presence of [ in the host name unambiguously indicates
> that the hostname should be treated as an IPv6 host name, otherwise, we
> must treat it as an IPv4 hostname. Right?
>

Hmmm well it looks like an IPv4 IP address is also a valid reg-name.

So the [ indicates the IPv6 (or future) address, otherwise it is IPv4 or a
reg-name.

cheers




-- 
Greg Wilkins <gregw_at_intalio.com>
http://eclipse.org/jetty HTTP, SPDY, Websocket server and client that scales
http://www.webtide.com  advice and support for jetty and cometd.