X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/9653ddc572f5fd8ec065e4c357101ae6edae7959..14e470582b4a0ca5567239c1910f7513b2cfbaa1:/lcorelocalips.pas?ds=inline diff --git a/lcorelocalips.pas b/lcorelocalips.pas index dcc633a..aafddf7 100644 --- a/lcorelocalips.pas +++ b/lcorelocalips.pas @@ -188,7 +188,7 @@ end; {$else} uses - sysutils,windows,winsock,dnssync,dnscore; + 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} @@ -256,13 +256,9 @@ var a:integer; ip:tbinip; usewindnstemp:boolean; + error:integer; begin - {this lookup must always be done with the windows API lookup - setting usewindns to false on windows will fail with infinite recursion} - usewindnstemp := usewindns; - usewindns := true; - result := forwardlookuplist('',0); - usewindns := usewindnstemp; + result := winforwardlookuplist('',0,error); {$ifdef ipv6}