From: Christian Korber Date: Wed, 17 Jun 2026 06:56:26 +0000 (+0200) Subject: luci-app-snmpd: set default encryption and authentification X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=8049a746dc85bb22b1f07986981a2c6d84a59893;p=openwrt-luci.git luci-app-snmpd: set default encryption and authentification If no authentification or encryption is specified, the default value is dropped in LuCI. So in order to keep the default rmempty is set to false, because otherwise it is not saved. Signed-off-by: Christian Korber --- diff --git a/applications/luci-app-snmpd/htdocs/luci-static/resources/view/snmpd/snmpd.js b/applications/luci-app-snmpd/htdocs/luci-static/resources/view/snmpd/snmpd.js index a78953e6ec..b7b864e3a8 100644 --- a/applications/luci-app-snmpd/htdocs/luci-static/resources/view/snmpd/snmpd.js +++ b/applications/luci-app-snmpd/htdocs/luci-static/resources/view/snmpd/snmpd.js @@ -464,8 +464,8 @@ return L.view.extend({ go.value('SHA-224', _('SHA-224')); go.value('SHA', _('SHA')); go.value('MD5', _('MD5')); - go.rmempty = true; go.default = 'SHA-256'; + go.rmempty = false; // SNMPv3 auth pass go = g.option(form.Value, 'auth_pass', @@ -485,8 +485,8 @@ return L.view.extend({ go.value('AES-192', _('AES-192')); go.value('AES', _('AES')); go.value('DES', _('DES')); - go.rmempty = true; go.default = 'AES'; + go.rmempty = false; // SNMPv3 privacy/encryption pass go = g.option(form.Value, 'privacy_pass',