From c166c07a93d5a95532f1175ede1c6827b94e8f8b Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 6 Oct 2021 23:48:06 +0100 Subject: Support IDN in --auth-zone. --- src/option.c | 6 ++++-- 1 file 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; -- cgit v1.2.1