Commit 41d64904 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

The IPv4 pattern was used for IPv6

parent 15e29eec
......@@ -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.ipv4WithPort)
builder.key("dns2-v6").ofType(Type.STRING).shouldNotBe(null).always().shouldBeLike(Util.ipv6WithPort)
.whenToStringIsNotEmpty().doneWithKey();
builder.key("setting_ipv6_enabled").ofType(Type.BOOLEAN).shouldNotBe(false).when(new PreferenceRestriction.Condition() {
......
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