Skip to content

Commit e9044ac

Browse files
Karlson2kfichtner
authored andcommitted
dns/dnscrypt-proxy: fix GUI with more than one disabled server
1 parent cae1df1 commit e9044ac

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

dns/dnscrypt-proxy/pkg-descr

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ such as DNSCrypt v2 and DNS-over-HTTPS.
55
Plugin Changelog
66
================
77

8+
1.14
9+
10+
* Fix display of the config with more than one disabled server in GUI (contributed by Evgeny Grin (karlson2k))
11+
812
1.13
913

1014
* Add necessary hooks to allow the plugin to be used as a standalone core DNS server

dns/dnscrypt-proxy/src/opnsense/mvc/app/models/OPNsense/Dnscryptproxy/General.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,11 @@
140140
<default>1</default>
141141
<Required>Y</Required>
142142
</query_logs>
143-
<disabled_serverlist type="TextField">
144-
<mask>/^([a-z0-9.,\-]{1,70})$/</mask>
143+
<disabled_serverlist type="CSVListField">
144+
<mask>/^[A-Za-z0-9\._\-]{1,70}(,[A-Za-z0-9\._\-]{1,70})*$/</mask>
145145
<default></default>
146146
<Required>N</Required>
147-
<FieldSeparator>,</FieldSeparator>
148-
<asList>Y</asList>
147+
<ValidationMessage>Please use valid server names.</ValidationMessage>
149148
</disabled_serverlist>
150149
<relaylist type="CSVListField">
151150
<Required>N</Required>

0 commit comments

Comments
 (0)