pike.git/
lib/
modules/
Protocols.pmod/
DNS.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2011-02-10
2011-02-10 01:34:03 by Per Hedbor <ph@opera.com>
72e5f8408519e06ffa36735002a908904a4b74fd (
4
lines) (+
3
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
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,"")) == ""); }