Skip to content

Commit c90fcbd

Browse files
committed
IPv6 addresses can also include a . it appears (::ffff) - closes 1663
1 parent ea0eb9e commit c90fcbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdns/rcpgenerator.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ void RecordTextReader::xfrIP6(std::string &val)
135135
skipSpaces();
136136

137137
size_t len;
138-
// lookup end of value
138+
// lookup end of value - think of ::ffff encoding too, has dots in it!
139139
for(len=0;
140-
d_pos+len < d_string.length() && (isxdigit(d_string.at(d_pos+len)) || d_string.at(d_pos+len) == ':');
140+
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)=='.');
141141
len++);
142142

143143
if(!len)

0 commit comments

Comments
 (0)