Skip to content

Commit

Permalink
xhttp: use proper function to set the ip addres of the fake via
Browse files Browse the repository at this point in the history
- for ipv6 it has to be enclosed in between [ ]
- reported by Sergey Okhapkin

(cherry picked from commit 5c1a9df)
  • Loading branch information
miconda committed Apr 1, 2015
1 parent 362cb1d commit f3128e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/xhttp/xhttp_mod.c
Expand Up @@ -199,7 +199,7 @@ static char* xhttp_to_sip(sip_msg_t* msg, int* new_msg_len)
struct hostport hp;
struct dest_info dst;

ip.s = ip_addr2a(&msg->rcv.src_ip);
ip.s = ip_addr2strz(&msg->rcv.src_ip);
ip.len = strlen(ip.s);
port.s = int2str(msg->rcv.src_port, &port.len);
hp.host = &ip;
Expand Down

0 comments on commit f3128e1

Please sign in to comment.