diff options
Diffstat (limited to 'src/cli_new.c')
-rw-r--r-- | src/cli_new.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cli_new.c b/src/cli_new.c index 0eed12b..ae48903 100644 --- a/src/cli_new.c +++ b/src/cli_new.c @@ -1859,7 +1859,10 @@ static void scan_ipv6(char *val, unsigned int *parts) int total = 8; int gap; - for (p = val;TRUE; ++p) { + p = val; + if (strncmp(p, ".wh.", 4) == 0) + p = p + 4; + for ( ;TRUE; ++p) { switch ((c = *p)) { case '.': if (dot_cnt == 0) { |