pike.git/lib/modules/Protocols.pmod/DNS.pmod:409: Inside #if defined(__NT__)
{
foreach(({
"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters",
"SYSTEM\\CurrentControlSet\\Services\\VxD\\MSTCP"
}),string key)
{
catch {
return RegGetValue(HKEY_LOCAL_MACHINE, key, val);
};
}
+
+ #if constant(RegGetKeyNames)
+ /* W2K, should be fixed to return results from *all* interfaces
+ * instead of just the first interface. -Hubbe
+ */
+ foreach(RegGetKeyNames(HKEY_LOCAL_MACHINE,
+ "SYSTEM\\CurrentControlSet\\Tcpip\\Parameters\\Interfaces"), string key)
+ {
+ catch {
+ return RegGetValue(HKEY_LOCAL_MACHINE,
+ "SYSTEM\\CurrentControlSet\\Tcpip\\Parameters\\Interfaces\\"+key,val);
+ };
}
-
+
+ }
#endif
static private string match_etc_hosts(string host)
{
if (!etc_hosts) {
string raw;
#ifdef __NT__
raw=get_tcpip_param("DataBasePath")+"\\hosts";
#else
raw="/etc/hosts";