Add connection checking for WG/AWG via logs (#1056)
This commit is contained in:
parent
9cab51fb00
commit
46058f614e
5 changed files with 47 additions and 5 deletions
|
|
@ -109,7 +109,7 @@ class Xray : Protocol() {
|
|||
}
|
||||
}
|
||||
|
||||
override fun startVpn(config: JSONObject, vpnBuilder: Builder, protect: (Int) -> Boolean) {
|
||||
override suspend fun startVpn(config: JSONObject, vpnBuilder: Builder, protect: (Int) -> Boolean) {
|
||||
if (isRunning) {
|
||||
Log.w(TAG, "XRay already running")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue