From 63ecf6f4e279a262c5f86f06e7e2c6eb4813dad7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Wed, 28 Jun 2000 17:40:30 -0700
Subject: [PATCH] may now work on W2K

Rev: lib/modules/Protocols.pmod/DNS.pmod:1.42
---
 lib/modules/Protocols.pmod/DNS.pmod | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/lib/modules/Protocols.pmod/DNS.pmod b/lib/modules/Protocols.pmod/DNS.pmod
index 9295aa922a..54ed328ac9 100644
--- a/lib/modules/Protocols.pmod/DNS.pmod
+++ b/lib/modules/Protocols.pmod/DNS.pmod
@@ -416,6 +416,20 @@ class client
 	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
   
-- 
GitLab