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
Pipeline #7698 passed with stage
in 4 minutes and 33 seconds
......@@ -89,7 +89,7 @@ class DnsRuleDialog(context: Context, dnsRule: DnsRule? = null, onRuleCreated: (
if (valid) {
dismiss()
val type = when {
isWhitelist -> Record.TYPE.ANY
isWhitelist || isBlockHost -> Record.TYPE.ANY
!view.ipv4Address.text.isNullOrBlank() && !view.ipv6Address.text.isNullOrBlank() -> {
Record.TYPE.ANY
}
......
Markdown is supported
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