Reformat code
This commit is contained in:
@@ -31,6 +31,7 @@ class VPNService : VpnService(), PlatformInterfaceWrapper {
|
||||
}
|
||||
return service.onBind(intent)
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
service.onDestroy()
|
||||
}
|
||||
@@ -96,14 +97,14 @@ class VPNService : VpnService(), PlatformInterfaceWrapper {
|
||||
}
|
||||
|
||||
val inet4RouteExcludeAddress = options.inet4RouteExcludeAddress
|
||||
while (inet4RouteExcludeAddress.hasNext()) {
|
||||
builder.excludeRoute(inet4RouteExcludeAddress.next().toIpPrefix())
|
||||
}
|
||||
while (inet4RouteExcludeAddress.hasNext()) {
|
||||
builder.excludeRoute(inet4RouteExcludeAddress.next().toIpPrefix())
|
||||
}
|
||||
|
||||
val inet6RouteExcludeAddress = options.inet6RouteExcludeAddress
|
||||
while (inet6RouteExcludeAddress.hasNext()) {
|
||||
builder.excludeRoute(inet6RouteExcludeAddress.next().toIpPrefix())
|
||||
}
|
||||
while (inet6RouteExcludeAddress.hasNext()) {
|
||||
builder.excludeRoute(inet6RouteExcludeAddress.next().toIpPrefix())
|
||||
}
|
||||
} else {
|
||||
val inet4RouteAddress = options.inet4RouteRange
|
||||
if (inet4RouteAddress.hasNext()) {
|
||||
|
||||
@@ -42,6 +42,7 @@ class DashboardFragment : Fragment(R.layout.fragment_dashboard) {
|
||||
Status.Stopped -> {
|
||||
disablePager()
|
||||
}
|
||||
|
||||
Status.Started -> {
|
||||
enablePager()
|
||||
}
|
||||
@@ -49,6 +50,7 @@ class DashboardFragment : Fragment(R.layout.fragment_dashboard) {
|
||||
Status.Stopping -> {
|
||||
disablePager()
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ open class CommandClient(
|
||||
}
|
||||
|
||||
override fun clearLog() {
|
||||
handler.clearLog()
|
||||
handler.clearLog()
|
||||
}
|
||||
|
||||
override fun writeLog(message: String?) {
|
||||
|
||||
Reference in New Issue
Block a user