Allow IPv6 addresses ofthe form [::ffff:1.2.3.4] in --dhcp-option.

This commit is contained in:
Simon Kelley
2020-04-23 23:14:45 +01:00
parent 913fa15fb1
commit 8baf583a3f

View File

@@ -1225,7 +1225,7 @@ static int parse_dhcp_opt(char *errstr, char *arg, int flags)
}
else if (c == '.')
{
is_addr6 = is_dec = is_hex = 0;
is_dec = is_hex = 0;
dots++;
}
else if (c == '-')