Details
Description
I use QNetworkAccessManager to make HTTP requests to a URL on localhost. The problem arises when the program is started with WiFi enabled (and being connected to a WiFi network), and then the connection drops (for example by disabling WiFi).
The NetworkAccessibility changes to "not accessible" (this might be ok because there is no external network connection anymore), but all subsequent requests to "127.0.0.1" fail with the error string "Network access is disabled". And this is not ok, because localhost requests should of course still be possible.
Also see the attached demo program.
NOTE: The problem does NOT arise if the program gets started with WiFi disabled. This is quite inconsistent in my opinion.