Merge pull request #610 from yuhan6665/fix-protect

Fix protect() when there is no service
This commit is contained in:
2dust authored and GitHub committed 2020-09-21 07:59:55 +08:00
commit 5bbbdcf6f2
1 file changed
+1 -1
@@ -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
}