Opened 8 years ago
Closed 8 years ago
#1925 closed defect (fixed)
pj_getaddrinfo() cannot resolve IPv4 address to synthesized IPv6 address
Reported by: | nanang | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-2.5.1 |
Component: | pjlib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description
Currently if IP address is inputted, it will simply return back the IP address. This behaviour is introduced by ticket #458 for tackling issues on Windows Mobile with no network connection.
Unfortunately, the behaviour may cause IPv4 -> IPv6 address resolution fails on Apple platforms:
If your app needs to connect to an IPv4-only server without a DNS hostname, use getaddrinfo to resolve the IPv4 address literal. If the current network interface doesn’t support IPv4, but supports IPv6, NAT64, and DNS64, performing this task will result in a synthesized IPv6 address.
Thanks Johan Lantz for the report.
Change History (1)
comment:1 Changed 8 years ago by nanang
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In 5319: