Commit 3d757fe9 authored by jehan's avatar jehan

always set ai_family default value for listening point

parent 9b712b16
......@@ -28,6 +28,11 @@ void belle_sip_listening_point_init(belle_sip_listening_point_t *lp, belle_sip_s
belle_sip_uri_set_port(lp->listening_uri,port);
belle_sip_uri_set_transport_param(lp->listening_uri,BELLE_SIP_OBJECT_VPTR(lp,belle_sip_listening_point_t)->transport);
tmp=belle_sip_object_to_string((belle_sip_object_t*)BELLE_SIP_LISTENING_POINT(lp)->listening_uri);
if (strchr(address,':')) {
lp->ai_family=AF_INET6;
} else {
lp->ai_family=AF_INET;
}
belle_sip_message("Creating listening point [%p] on [%s]",lp, tmp);
belle_sip_free(tmp);
}
......
......@@ -235,7 +235,7 @@ static void process_response_event(belle_sip_listener_t *user_ctx, const belle_s
refresher->auth_failures++;
if (refresher->auth_failures>3){
/*avoid looping with 407 or 401 */
belle_sip_warning("Authentication is failing constantly, giving up.");
belle_sip_warning("Authentication is failing constantly, %s",(refresher->target_expires>0)? "will retry later":"giving up.");
if (refresher->target_expires>0) retry_later(refresher);
break;
}
......
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