Windows - "bypass proxy for local..." also affects IP addresses
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Fri, 20 Apr 2012 14:04:29 +0000 (15:04 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 20 Apr 2012 20:23:23 +0000 (22:23 +0200)
commitfffc900f78a191970c4eebced9c1af016a9ea6f4
tree54afa0a5f8783fb08fd0d419a351f65bd0fec228
parent57482b930f8b51ddb6be7d9a6ca6808a14b92c6f
Windows - "bypass proxy for local..." also affects IP addresses

If the "bypass proxy for local addresses" option is enabled in
the windows proxy configuration, then do not use the proxy for
any IP address in the subnet of any network interface.

As the systemProxyForQuery api is now offering HTTP proxy tunnels
for TCP sockets, this change avoids local ad-hoc network
connections being routed through the proxy.
In the case where the local address was on a different interface to
the proxy server, it may have been unreachable through the proxy.
For example IP over USB or Bluetooth.

Change-Id: I0842732832a7795112be029d923ed168edc008d6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/network/kernel/qnetworkproxy_win.cpp
tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp