pyamsoft / tetherfi

TetherFi - Internet sharing without Root
Apache License 2.0
391 stars 30 forks source link

Bug when switching VPN server #190

Closed chemicalbuz closed 1 year ago

chemicalbuz commented 1 year ago

I've notice there's a bug when switching VPN server (I use surfshark app for Android): if I switch VPN server when tetherfi is running, the connection won't work any more and the only way to fix it is to restart the phone where tetherfi is installed. Although the connection works if I turn the VPN off. If I stop tetherfi, switch VPN server, and turn tetherfi on again works without issues.

pyamsoft commented 1 year ago

This is an issue caused by two things

Both TetherFi and the VPN generally expect to be "the only one" handling network related stuff. If switching VPN servers with TetherFi on causes the VPN connection to break, there is little I can do as I do not have the ability to account for VPN connections. TetherFi just starts a Wi-Fi direct network, which is completely independent of any VPN status.

You already seem to have figured out the work around, which is to make sure TetherFi is off before attempting any VPN related configuration. There is little I can do here, though this is good as documentation.

On Sun, Jul 9, 2023 at 11:27 AM chemicalbuz @.***> wrote:

I've notice there's a bug when switching VPN server (I use surfshark app for Android): if I switch VPN server when tetherfi is running, the connection won't work any more and the only way to fix it is to restart the phone where tetherfi is installed. Although it the connection works if I turn of VPN. If I stop tetherfi, switch VPN server, and turn tetherfi on again works without issues.

— Reply to this email directly, view it on GitHub https://github.com/pyamsoft/tetherfi/issues/190, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXOJATJQZVMAWXGYZY27ADXPLZZNANCNFSM6AAAAAA2DUZKMU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

chemicalbuz commented 1 year ago

Sure that's not a big deal, you could add a warning to let users know to turn tetherfi off before switching server to avoid issues. Keep up the good work! Cheers

Il Dom 9 Lug 2023, 20:30 pyamsoft @.***> ha scritto:

This is an issue caused by two things

Both TetherFi and the VPN generally expect to be "the only one" handling network related stuff. If switching VPN servers with TetherFi on causes the VPN connection to break, there is little I can do as I do not have the ability to account for VPN connections. TetherFi just starts a Wi-Fi direct network, which is completely independent of any VPN status.

You already seem to have figured out the work around, which is to make sure TetherFi is off before attempting any VPN related configuration. There is little I can do here, though this is good as documentation.

On Sun, Jul 9, 2023 at 11:27 AM chemicalbuz @.***> wrote:

I've notice there's a bug when switching VPN server (I use surfshark app for Android): if I switch VPN server when tetherfi is running, the connection won't work any more and the only way to fix it is to restart the phone where tetherfi is installed. Although it the connection works if I turn of VPN. If I stop tetherfi, switch VPN server, and turn tetherfi on again works without issues.

— Reply to this email directly, view it on GitHub https://github.com/pyamsoft/tetherfi/issues/190, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABXOJATJQZVMAWXGYZY27ADXPLZZNANCNFSM6AAAAAA2DUZKMU>

. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/pyamsoft/tetherfi/issues/190#issuecomment-1627790630, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3RN5BOBFWXTIYVBJESOYLXPL2CZANCNFSM6AAAAAA2DUZKMU . You are receiving this because you authored the thread.Message ID: @.***>