Permalink
Browse files

IPv6 addresses can also include a . it appears (::ffff) - closes 1663

  • Loading branch information...
1 parent ea0eb9e commit c90fcbd52240c4770fab4eafc0fc1c9d22dc62e0 @ahupowerdns ahupowerdns committed Sep 2, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 pdns/rcpgenerator.cc
@@ -135,9 +135,9 @@ void RecordTextReader::xfrIP6(std::string &val)
skipSpaces();
size_t len;
- // lookup end of value
+ // lookup end of value - think of ::ffff encoding too, has dots in it!
for(len=0;
- d_pos+len < d_string.length() && (isxdigit(d_string.at(d_pos+len)) || d_string.at(d_pos+len) == ':');
+ d_pos+len < d_string.length() && (isxdigit(d_string.at(d_pos+len)) || d_string.at(d_pos+len) == ':' || d_string.at(d_pos+len)=='.');
len++);
if(!len)

0 comments on commit c90fcbd

Please sign in to comment.