Commit a0e0b1b2 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Added parameter names for boolean literals

parent 8eedb0c0
......@@ -167,7 +167,11 @@ class QueryLogDetailFragment : Fragment() {
hostSourceWrap.visibility = View.VISIBLE
hostSourceFetchJob = GlobalScope.launch(Dispatchers.IO) {
val sourceRule = getDatabase().dnsRuleDao().findRuleTargetEntity(query.name, query.type, true)
?: getDatabase().dnsRuleDao().findPossibleWildcardRuleTarget(query.name, query. type, true, false, true).firstOrNull {
?: getDatabase().dnsRuleDao().findPossibleWildcardRuleTarget(query.name, query. type,
useUserRules = true,
includeWhitelistEntries = false,
includeNonWhitelistEntries = true
).firstOrNull {
DnsRuleDialog.databaseHostToMatcher(it.host).reset(query.name).matches()
}
val text = if (sourceRule != null) {
......
......@@ -899,7 +899,7 @@ class DnsVpnService : VpnService(), Runnable {
if (useIpv4) {
serverConfig.getAllDnsIpAddresses(true, false).forEach {
serverConfig.getAllDnsIpAddresses(ipv4 = true, ipv6 = false).forEach {
log("Adding $it as dummy DNS server address")
builder.addDnsServer(it)
builder.addRoute(it, 32)
......@@ -912,7 +912,7 @@ class DnsVpnService : VpnService(), Runnable {
} else if (deviceHasIpv4 && allowIpv4Traffic) builder.allowFamily(OsConstants.AF_INET) // If not allowing no IPv4 connections work anymore.
if (useIpv6) {
serverConfig.getAllDnsIpAddresses(false, true).forEach {
serverConfig.getAllDnsIpAddresses(ipv4 = false, ipv6 = true).forEach {
log("Adding $it as dummy DNS server address")
builder.addDnsServer(it)
builder.addRoute(it, 128)
......
......@@ -112,8 +112,8 @@ class DnsRuleResolver(context: Context) : LocalResolver(false) {
uniformQuestion,
type,
useUserRules,
true,
false
includeWhitelistEntries = true,
includeNonWhitelistEntries = false
).firstOrNull {
DnsRuleDialog.databaseHostToMatcher(it.host).reset(uniformQuestion)
.matches()
......@@ -156,8 +156,8 @@ class DnsRuleResolver(context: Context) : LocalResolver(false) {
uniformQuestion,
type,
useUserRules,
false,
true
includeWhitelistEntries = false,
includeNonWhitelistEntries = true
).firstOrNull {
DnsRuleDialog.databaseHostToMatcher(it.host)
.reset(uniformQuestion).matches()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment