diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2021-10-06 23:48:06 +0100 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2021-10-06 23:48:06 +0100 |
commit | c166c07a93d5a95532f1175ede1c6827b94e8f8b (patch) | |
tree | d4462780a04c28b9c96cbdfa97a26704d1988fa2 | |
parent | 39a625ff720f7cac93830be2e01ee590ffc7f8bd (diff) | |
download | dnsmasq-c166c07a93d5a95532f1175ede1c6827b94e8f8b.tar.gz |
Support IDN in --auth-zone.
-rw-r--r-- | src/option.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/option.c b/src/option.c index dc1efd3..1355745 100644 --- a/src/option.c +++ b/src/option.c @@ -2227,8 +2227,10 @@ static int one_opt(int option, char *arg, char *errstr, char *gen_err, int comma comma = split(arg); new = opt_malloc(sizeof(struct auth_zone)); - new->domain = opt_string_alloc(arg); - new->subnet = NULL; + new->domain = canonicalise_opt(arg); + if (!new->domain) + ret_err_free(_("invalid auth-zone"), new); + new->subnet = NULL; new->exclude = NULL; new->interface_names = NULL; new->next = daemon->auth_zones; |