[pve-devel] [PATCH manager] FirewallOptions: fix DHCP default value

Dominik Csapak d.csapak at proxmox.com
Mon Oct 30 14:26:00 CET 2017


we always had dhcp enabled by default in the backend, but
showed 'Disabled' on the gui, this patch show 'Enabled' by default

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/grid/FirewallOptions.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/grid/FirewallOptions.js b/www/manager6/grid/FirewallOptions.js
index eaaba254..60c09ee5 100644
--- a/www/manager6/grid/FirewallOptions.js
+++ b/www/manager6/grid/FirewallOptions.js
@@ -116,7 +116,7 @@ Ext.define('PVE.FirewallOptions', {
 	    add_log_row('smurf_log_level');
 	} else if (me.fwtype === 'vm') {
 	    add_boolean_row('enable', gettext('Firewall'), 0);
-	    add_boolean_row('dhcp', 'DHCP', 0);
+	    add_boolean_row('dhcp', 'DHCP', 1);
 	    add_boolean_row('ndp', 'NDP', 1);
 	    add_boolean_row('radv', gettext('Router Advertisement'), 0);
 	    add_boolean_row('macfilter', gettext('MAC filter'), 1);
-- 
2.11.0




More information about the pve-devel mailing list