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
Wade
DnsChanger
Commits
41d64904
Commit
41d64904
authored
Apr 11, 2018
by
Daniel Wolf
Browse files
The IPv4 pattern was used for IPv6
parent
15e29eec
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/dnschanger/util/Preferences.java
View file @
41d64904
...
...
@@ -40,7 +40,7 @@ public class Preferences extends com.frostnerd.utils.preferences.Preferences {
builder
.
key
(
"dns1-v6"
).
ofType
(
Type
.
STRING
).
shouldNotBe
(
null
).
always
().
shouldNotBe
(
""
).
always
().
shouldBeLike
(
Util
.
ipv6WithPort
).
always
().
doneWithKey
();
builder
.
key
(
"dns2"
).
ofType
(
Type
.
STRING
).
shouldNotBe
(
null
).
always
().
shouldBeLike
(
Util
.
ipv4WithPort
)
.
whenToStringIsNotEmpty
().
doneWithKey
();
builder
.
key
(
"dns2-v6"
).
ofType
(
Type
.
STRING
).
shouldNotBe
(
null
).
always
().
shouldBeLike
(
Util
.
ipv
4
WithPort
)
builder
.
key
(
"dns2-v6"
).
ofType
(
Type
.
STRING
).
shouldNotBe
(
null
).
always
().
shouldBeLike
(
Util
.
ipv
6
WithPort
)
.
whenToStringIsNotEmpty
().
doneWithKey
();
builder
.
key
(
"setting_ipv6_enabled"
).
ofType
(
Type
.
BOOLEAN
).
shouldNotBe
(
false
).
when
(
new
PreferenceRestriction
.
Condition
()
{
...
...
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