Fix tst_qtcpserver::serverAddress on Mac OSX
authorShane Kearns <shane.kearns@accenture.com>
Mon, 23 Apr 2012 14:29:41 +0000 (15:29 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Apr 2012 13:58:26 +0000 (15:58 +0200)
commit6137067fc2c746cf064e47767286292ebc3fbf2e
treef78a43710fd8aaa57eb452c3642c5e3755810901
parent20d901a5553087ee4acbd1f68e5b8f5cce9b24d3
Fix tst_qtcpserver::serverAddress on Mac OSX

While linux returns the local address of dual mode sockets as "::"
i.e. the IPv6 address, OSX returns "::FFFF:0.0.0.0" i.e. the IPv4 address.

In the unix socket engine, treat both of these as candidates for
being a dual mode socket. This should hopefully cover other unixes
which we haven't tested.

Task-Number: QTBUG-25445
Change-Id: If1251018d54da98618223ba538c00ba54ac4cb4e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/network/socket/qnativesocketengine_unix.cpp