Add error handling of enabled "always-on" during VPN connection (#698)

* Always add awg-go version to the log
* Display an error message always when no vpn permission is granted
This commit is contained in:
albexk 2024-03-26 02:09:50 +03:00 committed by GitHub
parent 30bd264f17
commit 7730dd510c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 67 additions and 16 deletions

View file

@ -157,7 +157,7 @@ open class Wireguard : Protocol() {
if (tunFd == null) {
throw VpnStartException("Create VPN interface: permission not granted or revoked")
}
Log.v(TAG, "Wg-go backend ${GoBackend.awgVersion()}")
Log.i(TAG, "awg-go backend ${GoBackend.awgVersion()}")
tunnelHandle = GoBackend.awgTurnOn(ifName, tunFd.detachFd(), config.toWgUserspaceString())
}