]> git.proxmox.com Git - pmg-gui.git/commitdiff
mail proxy options: add maxValue config for netmasks
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Apr 2020 15:39:53 +0000 (17:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 20 Apr 2020 15:39:53 +0000 (17:39 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/MailProxyOptions.js

index bc4f3f6adafdf6a7fb92b65a0718a8bbbd47aec9..8c19fcd4c023360f59fb78b4c4789f2a5711f975 100644 (file)
@@ -48,13 +48,13 @@ Ext.define('PMG.MailProxyOptions', {
                           { defaultValue: 1 });
 
        me.add_integer_row('greylistmask4', gettext('Netmask for Greylisting IPv4'),
-                          { defaultValue: 24, minValue: 0 });
+                          { defaultValue: 24, minValue: 0, maxValue: 32 });
 
        me.add_boolean_row('greylist6', gettext('Use Greylisting for IPv6'),
                           { defaultValue: 0 });
 
        me.add_integer_row('greylistmask6', gettext('Netmask for Greylisting IPv6'),
-                          { defaultValue: 64, minValue: 0 });
+                          { defaultValue: 64, minValue: 0, maxValue: 128 });
 
        me.add_boolean_row('spf', gettext('Use SPF'), { defaultValue: 1 });