Also catch the IPv6 version of INADDR_ANY

This commit is contained in:
2018-08-20 10:59:27 +02:00
parent 460bd8c672
commit a0dda67dfe
+2 -1
View File
@@ -1846,7 +1846,8 @@ validate_options(fko_cli_options_t *options)
exit(EXIT_FAILURE);
}
else if(options->verbose
&& strncmp(options->allow_ip_str, "0.0.0.0", strlen("0.0.0.0")) == 0)
&& (strncmp(options->allow_ip_str, "0.0.0.0", strlen("0.0.0.0")) == 0
|| strncmp(options->allow_ip_str, "::", strlen("::")) == 0))
{
log_msg(LOG_VERBOSITY_WARNING,
"[-] WARNING: Should use -a or -R to harden SPA against potential MITM attacks");