X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/3ac664ec654230b9ad26ab12242c1db6f636a26f..2579cad7a973072619a7fc17ff6af9cc75264972:/lcorelocalips.pas

diff --git a/lcorelocalips.pas b/lcorelocalips.pas
index ae2a00b..aafddf7 100644
--- a/lcorelocalips.pas
+++ b/lcorelocalips.pas
@@ -188,7 +188,7 @@ end;
 {$else}
 
 uses
-  sysutils,windows,winsock,dnssync;
+  sysutils,windows,winsock,dnswin;
 
 {the following code's purpose is to determine what IP windows would come from, to reach an IP
 it can be abused to find if there's any global v6 IPs on a local interface}
@@ -255,8 +255,10 @@ function getlocalips:tbiniplist;
 var
   a:integer;
   ip:tbinip;
+  usewindnstemp:boolean;
+  error:integer;
 begin
-  result := forwardlookuplist('',0);
+  result := winforwardlookuplist('',0,error);
 
   {$ifdef ipv6}