pike.git / lib / modules / Protocols.pmod / DNS.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:837: Inside #if defined(__NT__)
   res -= ({ UNDEFINED });    return sizeof(res) ? res : ({ fallbackvalue });    }      #else /* !__NT__ */       protected private mapping(string:string) etc_hosts;       protected private int is_ip(string ip)    { -  // FIXME: Doesn't work with IPv6 +  if( has_value( ip, ":") ) +  return (replace(ip, "0123456789abcdefABCDEF:"/1, allocate(23,"")) == "");    return (replace(ip, "0123456789."/1, allocate(11,"")) == "");    }       protected private string read_etc_file(string fname)    {    array(string) paths;    string res;   #ifdef __NT__    paths = get_tcpip_param("DataBasePath");   #else