Skip to content

Commit

Permalink
sipdump: make dest ipv6 addresses without square brackets
Browse files Browse the repository at this point in the history
(cherry picked from commit 0a61ec2)
(cherry picked from commit d0300a9)
  • Loading branch information
miconda committed Sep 17, 2022
1 parent 33dde3f commit 0b42078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/sipdump/sipdump_mod.c
Expand Up @@ -408,7 +408,8 @@ int sipdump_msg_sent(sr_event_param_t *evp)
isd.src_port = (int)evp->dst->send_sock->port_no;
}
su2ip_addr(&ip, &evp->dst->to);
isd.dst_ip.len = ip_addr2sbufz(&ip, dstip_buf, IP_ADDR_MAX_STRZ_SIZE);
isd.dst_ip.len = ip_addr2sbuf(&ip, dstip_buf, IP_ADDR_MAX_STRZ_SIZE);
dstip_buf[isd.dst_ip.len] = '\0';
isd.dst_ip.s = dstip_buf;
isd.dst_port = (int)su_getport(&evp->dst->to);

Expand Down

0 comments on commit 0b42078

Please sign in to comment.