Skip to content
Snippets Groups Projects
Commit 5f1f79f3 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Keep support for ipv4-mapped-ipv6 for backwards compatibility.

parent 0b008c6a
No related branches found
No related tags found
No related merge requests found
...@@ -423,7 +423,8 @@ static void process_option(int opt, char *optarg, struct config *config, ...@@ -423,7 +423,8 @@ static void process_option(int opt, char *optarg, struct config *config,
case OPT_IP_VERSION: case OPT_IP_VERSION:
if (strcmp(optarg, "ipv4") == 0) if (strcmp(optarg, "ipv4") == 0)
config->ip_version = IP_VERSION_4; config->ip_version = IP_VERSION_4;
else if (strcmp(optarg, "ipv4_mapped_ipv6") == 0) else if ((strcmp(optarg, "ipv4-mapped-ipv6") == 0) ||
(strcmp(optarg, "ipv4_mapped_ipv6") == 0))
config->ip_version = IP_VERSION_4_MAPPED_6; config->ip_version = IP_VERSION_4_MAPPED_6;
else if (strcmp(optarg, "ipv6") == 0) else if (strcmp(optarg, "ipv6") == 0)
config->ip_version = IP_VERSION_6; config->ip_version = IP_VERSION_6;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment