Add a try to use a global hosts file if one is available ...
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17441
f5534014-38df-0310-8fa8-
9805f1628bb7
}
g_free(hostspath);
+ /*
+ * Load the global hosts file, if we have one.
+ */
+ hostspath = get_datafile_path(ENAME_HOSTS);
+ if (!read_hosts_file(hostspath) && errno != ENOENT) {
+ report_open_failure(hostspath, errno, FALSE);
+ }
+ g_free(hostspath);
+
#ifdef HAVE_GNU_ADNS
/*
* We're using GNU ADNS, which doesn't check the system hosts file;