Branch: Tag:

2011-02-10

2011-02-10 01:34:03 by Per Hedbor <ph@opera.com>

Simple hack to allow literal ipv6 in /etc/hosts

844:       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,"")) == "");    }