summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2016-02-17 22:12:31 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2016-02-17 22:12:31 +0000
commit22c0f4fe8767bd18959626fc999bf59f6992a27f (patch)
tree019bb890c7f31a6161316313f67b2a5e4a846604
parent9e4cf47ee831760d6651770c837993e0c32dda23 (diff)
downloaddnsmasq-22c0f4fe8767bd18959626fc999bf59f6992a27f.tar.gz
Fix previous commit.v2.76test10
-rw-r--r--src/option.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c
index 724540d..c98bdc9 100644
--- a/src/option.c
+++ b/src/option.c
@@ -452,7 +452,7 @@ static struct {
{ LOPT_PXE_PROMT, ARG_DUP, "<prompt>,[<timeout>]", gettext_noop("Prompt to send to PXE clients."), NULL },
{ LOPT_PXE_SERV, ARG_DUP, "<service>", gettext_noop("Boot service for PXE menu."), NULL },
{ LOPT_TEST, 0, NULL, gettext_noop("Check configuration syntax."), NULL },
- { LOPT_ADD_MAC, ARG_DUP, "[=base64]", gettext_noop("Add requestor's MAC address to forwarded DNS queries."), NULL },
+ { LOPT_ADD_MAC, ARG_DUP, "[=base64|text]", gettext_noop("Add requestor's MAC address to forwarded DNS queries."), NULL },
{ LOPT_ADD_SBNET, ARG_ONE, "<v4 pref>[,<v6 pref>]", gettext_noop("Add specified IP subnet to forwarded DNS queries."), NULL },
{ LOPT_CPE_ID, ARG_ONE, "<text>", gettext_noop("Add client identification to forwarded DNS queries."), NULL },
{ LOPT_DNSSEC, OPT_DNSSEC_PROXY, NULL, gettext_noop("Proxy DNSSEC validation results from upstream nameservers."), NULL },
@@ -2174,7 +2174,8 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma
set_option_bool(OPT_MAC_B64);
else if (strcmp(arg, "text") == 0)
set_option_bool(OPT_MAC_HEX);
- ret_err(gen_err);
+ else
+ ret_err(gen_err);
}
break;