Ticket #1953 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

Fail to create resolver when library built with IPv6 but run on system without IPv6

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-2.6
Component: pjlib-util Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

Reported that pjsip_endpt_create_resolver() returns error when PJ_HAS_IPV6 is set to 1 in the build, but run on system without IPv6 support. The error is triggered by failure in IPv6 socket setup (for contacting IPv6 nameservers). So instead of returning error, resolver should just skip IPv6 socket on system without IPv6.

Thanks Alexei Gradinari for the report. Original report can be found here.

Change History

comment:1 Changed 13 months ago by nanang

  • Status changed from new to closed
  • Resolution set to fixed

In r5420:

  • Skip IPv6 socket in resolver on system without IPv6 support.
Note: See TracTickets for help on using tickets.