g_network_monitor_base_can_reach: Check for default route after enumerating.
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 19 Feb 2013 16:18:11 +0000 (11:18 -0500)
committerDan Winship <danw@gnome.org>
Wed, 20 Feb 2013 12:33:58 +0000 (07:33 -0500)
commit4ca3d80ff3d5d076c0bfc187b4efa9fa51cbcca2
tree05c2408efb36ddfa620e5a72a80a3afa73b777bc
parentc6c11665668c47841011258e5dbca07ad3d8aba0
g_network_monitor_base_can_reach: Check for default route after enumerating.

Enumerate the GSocketConnectable before checking for a default route.
For some connectable types this will involve a DNS lookup.  This will
elminate false positives for hosts behind a VPN since DNS lookup will
fail if the VPN is not connected.

https://bugzilla.gnome.org/show_bug.cgi?id=694181
gio/gnetworkmonitorbase.c