public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup 3/3] ui: traffic-control: include ipv6 in 'all' networks
Date: Mon, 22 Nov 2021 09:09:35 +0100	[thread overview]
Message-ID: <20211122080935.577807-3-d.csapak@proxmox.com> (raw)
In-Reply-To: <20211122080935.577807-1-d.csapak@proxmox.com>

by including '::/0' too

Signed-off-by: Dominik Csapak <d.csapak@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





  parent reply	other threads:[~2021-11-22  8:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-22  8:09 [pbs-devel] [PATCH proxmox-backup 1/3] ui: indentation fix Dominik Csapak
2021-11-22  8:09 ` [pbs-devel] [PATCH proxmox-backup 2/3] ui: traffic-control: fix sending network value Dominik Csapak
2021-11-22  8:09 ` Dominik Csapak [this message]
2021-11-22  9:49 ` [pbs-devel] applied: [PATCH proxmox-backup 1/3] ui: indentation fix Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211122080935.577807-3-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal