Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
PublicAndroidApps
Nebulo
Commits
ef80d5b3
Commit
ef80d5b3
authored
Jan 02, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/dialog/DnsRuleDialog.kt
View file @
ef80d5b3
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment