lcore.org gitweb
/
lcore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* add multiip support to dnsasync
[lcore.git]
/
dnswin.pas
diff --git
a/dnswin.pas
b/dnswin.pas
index ffe472ba18fe2580d0180d8f256afe4e85fbc869..73f97adfc2431c4a28a6b89fcffc3649f45a0b58 100755
(executable)
--- a/
dnswin.pas
+++ b/
dnswin.pas
@@
-30,7
+30,7
@@
type
public
\r
onrequestdone:tsocketevent;
\r
name : string;
\r
public
\r
onrequestdone:tsocketevent;
\r
name : string;
\r
- ip
: tbinip
;
\r
+ ip
list : tbiniplist
;
\r
\r
procedure forwardlookup(name:string;ipv6preffered:boolean);
\r
procedure reverselookup(ip:tbinip);
\r
\r
procedure forwardlookup(name:string;ipv6preffered:boolean);
\r
procedure reverselookup(ip:tbinip);
\r
@@
-290,7
+290,8
@@
begin
end;
\r
procedure tdnswinasync.reverselookup(ip:tbinip);
\r
begin
\r
end;
\r
procedure tdnswinasync.reverselookup(ip:tbinip);
\r
begin
\r
- self.ip := ip;
\r
+ iplist := biniplist_new;
\r
+ biniplist_add(iplist,ip);
\r
freverse := true;
\r
resume;
\r
end;
\r
freverse := true;
\r
resume;
\r
end;
\r
@@
-298,14
+299,14
@@
end;
procedure tdnswinasync.execute;
\r
var
\r
error : integer;
\r
procedure tdnswinasync.execute;
\r
var
\r
error : integer;
\r
- l:tbiniplist;
\r
+
\r
begin
\r
error := 0;
\r
if reverse then begin
\r
begin
\r
error := 0;
\r
if reverse then begin
\r
- name := winreverselookup(
ip
,error);
\r
+ name := winreverselookup(
biniplist_get(iplist,0)
,error);
\r
end else begin
\r
end else begin
\r
-
l
:= winforwardlookuplist(name,0,error);
\r
- ip := biniplist_get(l,0);
\r
+
iplist
:= winforwardlookuplist(name,0,error);
\r
+
\r
end;
\r
postmessage(hwnddnswin,wm_user,error,taddrint(self));
\r
end;
\r
end;
\r
postmessage(hwnddnswin,wm_user,error,taddrint(self));
\r
end;
\r