Support displays with IPv6 addresses or hosts which resolve to IPv6 addresses
authorJosh Triplett <josh@freedesktop.org>
Tue, 21 Nov 2006 01:53:30 +0000 (17:53 -0800)
committerJosh Triplett <josh@freedesktop.org>
Tue, 21 Nov 2006 01:54:34 +0000 (17:54 -0800)
commit48776ce233bf77fbaddbe972d2356bca69094239
tree5156c441070ba1e4aafd7e29f82c6805d7c0cd38
parent6c3a8db3f69aebf2b5c1330ec6c11b3138f9bdfe
Support displays with IPv6 addresses or hosts which resolve to IPv6 addresses

xcb_parse_display already correctly handled IPv6 displays.  Now, _xcb_open_tcp
uses getaddrinfo, and correctly connects to IPv6 displays.  Displays can use
bare IPv6 addresses, square-bracketed IPv6 addresses, or hostnames which
resolve to IPv6 addresses.

Since IPv6 addresses may include colons, including at the end, revise the
DECnet display parsing code to avoid triggering on IPv6 addresses.

Authorization may not work with IPv6 connections yet.

This commit brought to you by the (display) number ::1:1.1, the letter X,
the Gobby collaborative editor, Josh Triplett, and Jamey Sharp.
src/xcb_util.c