Reachability.swift
Reachability.swift copied to clipboard
Continually fires onReachabilityChanged when on IPv6 only network.
When testing for IPv6 compatibility, I noticed that Reachability got in the way. Our logs indicate that reachability is firing multiple, continuous callbacks when on a test IPv6 network.
Reproduction:
- Setup a NAT64 network (IPv6) through Internet Sharing on your Mac.
- Disconnect iOS device from all networks, including cellular.
- Connect to this shared Wi-Fi network from an iOS device.
Expected Results:
Reachability should only fire once, on the initial instantiation.
Actual Results:
Reachability fires multiple, continuous callbacks indicating that reachability has changed, when it has not.
I got the same issue. I suspect the AF_INET need to change to AF_INET6 to support IPv6 network.
Please confirm. Many thanks
same here
First of all thanks for great help. is there any plan to release version with support of ipv6 and Swift 4?
I'm using Reachability.swift 4.3.0 and swift 4.2 , is it works on IPV6 ?