Skip to content

Commit

Permalink
Fix IPv6 support in ds_is_in_list().
Browse files Browse the repository at this point in the history
Closes #1459
  • Loading branch information
bogdan-iancu committed Sep 12, 2018
1 parent 7c4894b commit 774c22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dispatcher/dispatch.c
Expand Up @@ -2100,7 +2100,7 @@ int ds_is_in_list(struct sip_msg *_m, gparam_t *gp_ip, gparam_t *gp_port,
return -1;
}

if ( (ip=str2ip( &val.rs ))==NULL ) {
if ( (ip=str2ip( &val.rs ))==NULL && (ip=str2ip6( &val.rs ))==NULL ) {
LM_ERR("IP val is not IP <%.*s>\n",val.rs.len,val.rs.s);
return -1;
}
Expand Down

0 comments on commit 774c22d

Please sign in to comment.