Branch: Tag:

2012-01-11

2012-01-11 09:21:50 by Per Hedbor <ph@opera.com>

Simple hack to allow literal ipv6 in /etc/hosts

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