From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 0865580FE7 for ; Mon, 22 Nov 2021 09:10:07 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E5B1F1A0DC for ; Mon, 22 Nov 2021 09:09:36 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 29FD91A0C9 for ; Mon, 22 Nov 2021 09:09:36 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id F372543E9D for ; Mon, 22 Nov 2021 09:09:35 +0100 (CET) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Date: Mon, 22 Nov 2021 09:09:35 +0100 Message-Id: <20211122080935.577807-3-d.csapak@proxmox.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211122080935.577807-1-d.csapak@proxmox.com> References: <20211122080935.577807-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.208 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [PATCH proxmox-backup 3/3] ui: traffic-control: include ipv6 in 'all' networks X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2021 08:10:07 -0000 by including '::/0' too Signed-off-by: Dominik Csapak --- 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