luci-mod-network: dhcp.js: fix DNSSEC feature probing
authorJo-Philipp Wich <jo@mein.io>
Fri, 8 Nov 2019 09:33:44 +0000 (10:33 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 8 Nov 2019 09:33:44 +0000 (10:33 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 84586f48545e6fa19f05dffe3c8da4261bf3bc48..76cdff77f6dc0e83417ccba571ccd5f24de8618b 100644 (file)
@@ -126,10 +126,7 @@ return L.view.extend({
                        _('Localise queries'),
                        _('Localise hostname depending on the requesting subnet if multiple IPs are available'));
 
-               //local have_dnssec_support = luci.util.checklib('/usr/sbin/dnsmasq', 'libhogweed.so');
-               var have_dnssec_support = true;
-
-               if (have_dnssec_support) {
+               if (L.hasSystemFeature('dnsmasq', 'dnssec')) {
                        o = s.taboption('advanced', form.Flag, 'dnssec',
                                _('DNSSEC'));
                        o.optional = true;