Open Eitot opened 2 months ago
@barijaona I was looking into this a bit more and checked out the above-mentioned use of NSHost. I checked the result of address
numerous times and it seems to always return the address 127.0.0.1
on my MacBook, regardless whether I am connected to my local router via Wi-Fi, connected to my iPhone via LTE (hotspot) or connected to a VPN. Vienna stores the value of address
and compares it to the current value when the computer wakes from sleep, but I am not sure what result is expected here.
Is this working as intended?
NSHost has also been declared deprecated (since the macOS 12 SDK it seems). I wonder if the Network framework and specifically nw_path_monitor_*
might a substitute to listen for network changes more effectively.
When I woke up my MacBook I was greeted with this prompt:
Vienna was running in the background. This is what the message would look like in English:
Apple added this prompt in macOS 15 (https://developer.apple.com/wwdc24/10123) and it is caused by system API that request any of these permissions:
I suspect that the NSHost class and maybe SCNetworkReachability functions are involved, e.g. https://github.com/ViennaRSS/vienna-rss/blob/c307127f8fcb31da3fac64d613afeb8948836a2c/Vienna/Sources/Fetching/RefreshManager.m#L171-L182