diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-11-10 23:31:51 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-11-10 23:32:10 +0100 |
commit | 85169726a9749315a113f0ce3dc1658e9616cbe7 (patch) | |
tree | 97dffd24d2458572438977047a0e5b246f7a6f7e /src/conf.c | |
parent | 8c3931988c501f8a78b10f60fa6538dd5a8a4296 (diff) |
WIP: BindIPv6Mapped
Diffstat (limited to 'src/conf.c')
-rw-r--r-- | src/conf.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -118,6 +118,7 @@ static HANDLE_FUNC (handle_basicauth); static HANDLE_FUNC (handle_anonymous); static HANDLE_FUNC (handle_bind); static HANDLE_FUNC (handle_bindipv4mapped); +static HANDLE_FUNC (handle_bindipv6mapped); static HANDLE_FUNC (handle_bindsame); static HANDLE_FUNC (handle_connectport); static HANDLE_FUNC (handle_defaulterrorfile); @@ -218,6 +219,7 @@ struct { handle_deny), STDCONF (bind, "(" IP "|" IPV6 ")", handle_bind), STDCONF (bindipv4mapped, "(" IPV6 ")", handle_bindipv4mapped), + STDCONF (bindipv6mapped, "(" IP ")", handle_bindipv6mapped), /* other */ STDCONF (basicauth, ALNUM WS ALNUM, handle_basicauth), STDCONF (errorfile, INT WS STR, handle_errorfile), @@ -292,6 +294,7 @@ void free_config (struct config_s *conf) safefree (conf->user); safefree (conf->group); safefree (conf->bind_ipv4mapped); + safefree (conf->bind_ipv6mapped); stringlist_free(conf->basicauth_list); stringlist_free(conf->listen_addrs); stringlist_free(conf->bind_addrs); @@ -853,6 +856,11 @@ static HANDLE_FUNC (handle_bindipv4mapped) return set_string_arg(&conf->bind_ipv4mapped, line, &match[2]); } +static HANDLE_FUNC (handle_bindipv6mapped) +{ + return set_string_arg(&conf->bind_ipv6mapped, line, &match[2]); +} + static HANDLE_FUNC (handle_errorfile) { /* |