osy / Jitterbug

Launch JIT enabled iOS app with a second iOS device
Apache License 2.0
1.11k stars 90 forks source link

Check if VPN is already connected #9

Closed luken11 closed 3 years ago

luken11 commented 3 years ago

If Jitterbug is terminated without closing the VPN connection, the VPN remains connected.

If Jitterbug is subsequently relaunched without manually going to Settings and disconnecting the VPN, attempting to use the app will cause the app to hang on 'Starting VPN tunnel...' and subsequently 'Failed to start tunnel.'

This change checks whether the VPN connection is already established, and if so, skips connection establishment.