Details
-
Suggestion
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
5.5.0, 5.12.0 Beta 4
-
Mac OS X 10.10 (Xcode 6.2)
Description
For Mac OS X QNetworkInterface returns wrong values for isRunning and isUp when one unplugs an ethernet cable. Eventhough one unplugs the ethernet cable isUp() and isRunning() still returns true.
Most probably SCNetworkConfiguration should be used to fetch the configurations. See: https://developer.apple.com/library/mac/documentation/Networking/Reference/SCNetworkConfiguration/
The example attached can be used to reproduce the issue.
Steps to reproduce:
1. unplug ethernet cable
2. run the example
3. check from Application Output what does isRunning and isUp return
Expected result:
isRunning and isUp should return false
Actual result:
isRunning and isUp returns true even the ethernet cable is unplugged