diff --git a/src/local.c b/src/local.c index cf4f6c28..78f6d293 100644 --- a/src/local.c +++ b/src/local.c @@ -1471,6 +1471,9 @@ main(int argc, char **argv) nofile = conf->nofile; } #endif + if (ipv6first == 0) { + ipv6first = conf->ipv6_first; + } } if (remote_num == 0 || remote_port == NULL || diff --git a/src/redir.c b/src/redir.c index 4856007e..38094118 100644 --- a/src/redir.c +++ b/src/redir.c @@ -1080,6 +1080,9 @@ main(int argc, char **argv) nofile = conf->nofile; } #endif + if (ipv6first == 0) { + ipv6first = conf->ipv6_first; + } dscp_num = conf->dscp_num; dscp = conf->dscp; }