Added support for IPv6 to Reachability #3174
Conversation
[Apple Document(Supporting IPv6 DNS64/NAT64 Networks)] https://developer.apple.com/library/prerelease/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW26
Added support for IPv6 to Reachability
Not sure if this is the best place to ask, but I couldn't find a solid answer when googling and GitHub makes it easy to ask publicly: Does this changeset imply that iOS apps using AFNetworking 2.x's reachability manager could incur the wrath of Apple on 2016-06-01, when IPv6-only support will be required? Does AFNetworking 2.x work correctly in IPv6-only networks? |
@mkantor |
Same question for me. Does AFNetworking 2.x work correctly in IPv6-only networks? |
Same question but for AFNetworking 3.x, does it work correctly in IPv6-only networks? |
Same question for me. |
I have created a NAT64 sharing internet connection as Apple recommended to test on IPv6 only, and all seems to work for my app. |
@abournier you mean the 2.x version of AFNetworking? |
Yes, the 2.6.x. |
@abournier there also is some discussion related to this in #3496 related to AFNetworking 2.x supporting IPv6, probably better to keep discussion around version 2.x there rather than here which is focusing on 3.x. |
Thanks for the info. I will post on the other thread. |
As apple has updated the Official Reachability sample code, and claims that the class fully supports IPv6. But when we look at the code, it is still using @kcharwood However this PR actually uses ``sockaddr_in6` on iOS 9 or later. Will such implementation fail to work correctly if the device happens to be connecting to a IPv4 only network? |
It seems the Reachability function is not compatible to iOS 7. The function returns no reachable status even I have connected to a NAT64 share network. Also I found that reachabilityDidChange is slightly delay to trigger in iOS 8 (compare to iOS 9) when I try to connect to a IPv6 network from no network status. Is this a bug or iOS 7 isn't support NAT64? Many thanks. |
@cezheng |
Added IPv6 support for Reachability based on the work from @SAMUKEI in #3171