Merge pull request #610 from yuhan6665/fix-protect

Fix protect() when there is no service
This commit is contained in:
2dust
2020-09-21 07:59:55 +08:00
committed by GitHub

View File

@@ -88,7 +88,7 @@ object V2RayServiceManager {
}
override fun protect(l: Long): Long {
val serviceControl = serviceControl?.get() ?: return 1
val serviceControl = serviceControl?.get() ?: return 0
return if (serviceControl.vpnProtect(l.toInt())) 0 else 1
}