XITRIX / iTorrent

Torrent client for iOS 16+
2.07k stars 196 forks source link

Trusted Wifi Networks #73

Closed lonkelle closed 2 months ago

lonkelle commented 4 years ago

There should be a place to add a trusted network and not download or upload unless connected to it (also cellular would be its option).

syto203 commented 4 years ago

You can restrict cellular from iOS itself; However, a notification you are on cellular might be useful though.

lonkelle commented 4 years ago

That's true. But I'm really trying to restrict WIFI here. Only trust certain wifi networks.

I already have iTorrent turned off in my cellular data settings so I don't use up any data. But my home network is the only network I want to "trust."

lonkelle commented 3 years ago

Any further looking into this since then?

XITRIX commented 3 years ago

Sorry, no progress.

lonkelle commented 3 years ago

@XITRIX What about if your app makes sure that one is on WiFi, that a VPN is turned on? That would also solve the issue. :)

XITRIX commented 3 years ago

Could you paraphrase it? Do you mean that app need to check if iOS connected to VPN or not?

lonkelle commented 3 years ago

Yes, a setting for "refuse connection if not connected to a VPN" is a huge thing for torrenting given the privacy and security implications that come with direct peer to peer connections like this protocol is.

Basically, if that setting is on (off by default) – your code would check that your phone is connected to a VPN and looks like it's decently easy to check with a simple function, full code provided here:

https://medium.com/@alessandrofrancucci/checking-vpn-connection-on-ios-swift-9748d733e49d

XITRIX commented 3 years ago

Thanks for code reference, I'll try to implement such feature.