You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The first time you run Forge on Android, it is supposed to download an assets file. If you are connected to the internet, this normally works.
However, if you have configured a VPN and force all network traffic through that VPN, it doesn't work. This is the case even if you can connect to the internet via the VPN.
To Reproduce
Verify that your phone is connected to a network, such as wifi.
Verify in system settings that you are connected to a VPN, and that the VPN is set to "Block connections without VPN".
Verify that other apps can connect to the internet via the VPN.
Install Forge Android.
Run app.
Actual behavior
Get the error message "Updated resource files cannot be downloaded due to lack of internet connection".
Expected behavior
The app downloads assets and updates as usual.
Smartphone (please complete the following information):
Device: Samsung Galaxy S7
OS: Android 8.0.0
Forge version: 2.0.01 snapshot
Additional context
This may also impact later checks for updates.
This does not appear to impact downloading card images.
I noticed that the connectivity check specifically checks for wifi, ethernet, etc., but I think that when VPN traffic is forced, that there is a separate interface internally.
Rather than explicitly checking for VPNs, is there a reason we can't use a more hardware agnostic approach to checking for internet connectivity, such as https://stackoverflow.com/a/4239019 ?
This also affects the internet check for the Classic Mode main menu "Help" button. It says "no internet" when on a forced VPN. Fixing the isNetworkConnected call should fix that as well.
Describe the bug
The first time you run Forge on Android, it is supposed to download an assets file. If you are connected to the internet, this normally works.
However, if you have configured a VPN and force all network traffic through that VPN, it doesn't work. This is the case even if you can connect to the internet via the VPN.
To Reproduce
Actual behavior
Get the error message "Updated resource files cannot be downloaded due to lack of internet connection".
Expected behavior
The app downloads assets and updates as usual.
Smartphone (please complete the following information):
Additional context
/forge-gui-android/src/forge/app/Main.java
for network check,isNetworkConnected(boolean wifiOnly)
.Workaround
I was unable to find a workaround, other than to stop forcing traffic over VPN, which defeats the purpose of that VPN setting.
The text was updated successfully, but these errors were encountered: