Commit 912c1257 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix for udp channel on iOS

parent 0ab8d9c9
......@@ -70,7 +70,8 @@ int udp_channel_connect(belle_sip_channel_t *obj, const struct addrinfo *ai){
socklen_t lslen=sizeof(laddr);
if (obj->local_ip==NULL){
if (belle_sip_get_src_addr_for(ai->ai_addr,(socklen_t)ai->ai_addrlen,(struct sockaddr*)&laddr,&lslen,obj->local_port) == -BCTBX_ENETUNREACH){
int err = belle_sip_get_src_addr_for(ai->ai_addr,(socklen_t)ai->ai_addrlen,(struct sockaddr*)&laddr,&lslen,obj->local_port);
return -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment