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

Use type ANY when block host is selected, otherwise rule is IPv4 only

parent 7c414a64
...@@ -89,7 +89,7 @@ class DnsRuleDialog(context: Context, dnsRule: DnsRule? = null, onRuleCreated: ( ...@@ -89,7 +89,7 @@ class DnsRuleDialog(context: Context, dnsRule: DnsRule? = null, onRuleCreated: (
if (valid) { if (valid) {
dismiss() dismiss()
val type = when { val type = when {
isWhitelist -> Record.TYPE.ANY isWhitelist || isBlockHost -> Record.TYPE.ANY
!view.ipv4Address.text.isNullOrBlank() && !view.ipv6Address.text.isNullOrBlank() -> { !view.ipv4Address.text.isNullOrBlank() && !view.ipv6Address.text.isNullOrBlank() -> {
Record.TYPE.ANY Record.TYPE.ANY
} }
......
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