Do duplicate dhcp-host address check in --test mode.

This commit is contained in:
Simon Kelley
2012-06-07 13:56:23 +01:00
parent 43c271b07c
commit 078a630bba
2 changed files with 7 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
version 2.63
Do duplicate dhcp-host address check in --test mode.
version 2.62
Update German translation. Thanks to Conrad Kostecki.

View File

@@ -3762,6 +3762,9 @@ void read_opts(int argc, char **argv, char *compile_opts)
if (testmode)
{
/* Can cause a call to die() */
check_dhcp_hosts(1);
fprintf(stderr, "dnsmasq: %s.\n", _("syntax check OK"));
exit(0);
}