mirror of
https://github.com/2dust/v2rayNG.git
synced 2026-11-03 19:54:30 +00:00
Merge pull request #610 from yuhan6665/fix-protect
Fix protect() when there is no service
This commit is contained in:
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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user