[pbs-devel] [PATCH proxmox-backup 3/3] ui: traffic-control: include ipv6 in 'all' networks

Dominik Csapak d.csapak at proxmox.com
Mon Nov 22 09:09:35 CET 2021


by including '::/0' too

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/window/TrafficControlEdit.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/window/TrafficControlEdit.js b/www/window/TrafficControlEdit.js
index 69b01f7d..7d5d6899 100644
--- a/www/window/TrafficControlEdit.js
+++ b/www/window/TrafficControlEdit.js
@@ -195,7 +195,7 @@ Ext.define('PBS.window.TrafficControlEdit', {
 	    let isCreate = me.up('window').isCreate;
 
 	    if (!values.network) {
-		values.network = '0.0.0.0/0';
+		values.network = ['0.0.0.0/0', '::/0'];
 	    } else {
 		values.network = values.network.split(/\s*,\s*/);
 	    }
@@ -287,7 +287,7 @@ Ext.define('PBS.window.TrafficControlEdit', {
 		xtype: 'proxmoxtextfield',
 		fieldLabel: gettext('Network(s)'),
 		name: 'network',
-		emptyText: gettext('0.0.0.0/0 (Apply on all Networks)'),
+		emptyText: gettext('0.0.0.0/0, ::/0 (Apply on all Networks)'),
 		autoEl: {
 		    tag: 'div',
 		    'data-qtip': gettext('A comma-separated list of networks to apply the (shared) limit.'),
@@ -441,7 +441,7 @@ Ext.define('PBS.window.TrafficControlEdit', {
 	    me.load({
 		success: function(response) {
 		    let data = response.result.data;
-		    if (data.network?.length === 1 && data.network[0] === '0.0.0.0/0') {
+		    if (data.network?.length === 2 && data.network[0] === '0.0.0.0/0' && data.network[1] === '::/0') {
 			delete data.network;
 		    }
 
-- 
2.30.2






More information about the pbs-devel mailing list