X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/6cb6b7ede2d178e03fa817bc28474c175f5a93b9..0a9944546bc1cf591dfce10112a4385049909f02:/dnswin.pas?ds=inline diff --git a/dnswin.pas b/dnswin.pas index ffe472b..73f97ad 100755 --- a/dnswin.pas +++ b/dnswin.pas @@ -30,7 +30,7 @@ type public onrequestdone:tsocketevent; name : string; - ip : tbinip; + iplist : tbiniplist; procedure forwardlookup(name:string;ipv6preffered:boolean); procedure reverselookup(ip:tbinip); @@ -290,7 +290,8 @@ begin end; procedure tdnswinasync.reverselookup(ip:tbinip); begin - self.ip := ip; + iplist := biniplist_new; + biniplist_add(iplist,ip); freverse := true; resume; end; @@ -298,14 +299,14 @@ end; procedure tdnswinasync.execute; var error : integer; - l:tbiniplist; + begin error := 0; if reverse then begin - name := winreverselookup(ip,error); + name := winreverselookup(biniplist_get(iplist,0),error); end else begin - l := winforwardlookuplist(name,0,error); - ip := biniplist_get(l,0); + iplist := winforwardlookuplist(name,0,error); + end; postmessage(hwnddnswin,wm_user,error,taddrint(self)); end;