Reachability.swift icon indicating copy to clipboard operation
Reachability.swift copied to clipboard

Continually fires onReachabilityChanged when on IPv6 only network.

Open loganblevins opened this issue 8 years ago • 4 comments

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:

  1. Setup a NAT64 network (IPv6) through Internet Sharing on your Mac.
  2. Disconnect iOS device from all networks, including cellular.
  3. 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.

loganblevins avatar Oct 10 '17 14:10 loganblevins

I got the same issue. I suspect the AF_INET need to change to AF_INET6 to support IPv6 network.

Please confirm. Many thanks

fisherv1 avatar Oct 24 '17 03:10 fisherv1

same here

fusionbeam avatar Dec 24 '17 04:12 fusionbeam

First of all thanks for great help. is there any plan to release version with support of ipv6 and Swift 4?

sunny131984 avatar Jan 01 '18 04:01 sunny131984

I'm using Reachability.swift 4.3.0 and swift 4.2 , is it works on IPV6 ?

FlashTang avatar Dec 07 '18 09:12 FlashTang