X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/e27ef2c6aab3a2a8051314bd37bb3b2386775f36..31d4361fb52761b6486f55af10268a51ee536a6f:/dnscore.pas diff --git a/dnscore.pas b/dnscore.pas index d0dbbf0..18e40c9 100644 --- a/dnscore.pas +++ b/dnscore.pas @@ -204,7 +204,6 @@ procedure reportlag(id:integer;lag:integer); //lag should be in microseconds and {$ifdef ipv6} -function getv6localips:tbiniplist; procedure initpreferredmode; var @@ -223,7 +222,7 @@ uses {$ifdef win32} windows, {$endif} - + lcorelocalips, sysutils; @@ -750,43 +749,8 @@ begin end; - {$ifdef ipv6} -{$ifdef linux} -function getv6localips:tbiniplist; -var - t:textfile; - s,s2:ansistring; - ip:tbinip; - a:integer; -begin - result := biniplist_new; - - assignfile(t,'/proc/net/if_inet6'); - {$i-}reset(t);{$i+} - if ioresult <> 0 then exit; {none found, return empty list} - - while not eof(t) do begin - readln(t,s); - s2 := ''; - for a := 0 to 7 do begin - if (s2 <> '') then s2 := s2 + ':'; - s2 := s2 + copy(s,(a shl 2)+1,4); - end; - ipstrtobin(s2,ip); - if ip.family <> 0 then biniplist_add(result,ip); - end; - closefile(t); -end; - -{$else} -function getv6localips:tbiniplist; -begin - result := biniplist_new; -end; -{$endif} - procedure initpreferredmode; var l:tbiniplist;