Skip to content

Commit

Permalink
tls_mgm: fix IPv6 support in TLS domain definition
Browse files Browse the repository at this point in the history
(cherry picked from commit cbff0c0)
  • Loading branch information
rvlad-patrascu committed Sep 13, 2018
1 parent e6f4eaf commit c649a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tls_mgm/api.h
Expand Up @@ -73,7 +73,7 @@ static int parse_domain_address(char *val, unsigned int len, struct ip_addr **ip
}
s.len = p - s.s;
p++;
if ((*ip = str2ip(&s)) == NULL) {
if ((*ip = str2ip(&s)) == NULL && (*ip = str2ip6(&s)) == NULL) {
LM_ERR("[%.*s] is not an ip\n", s.len, s.s);
goto parse_err;
}
Expand Down

0 comments on commit c649a37

Please sign in to comment.