From dce65010303e851a724d7fd080810875f4cb0253 Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Thu, 28 Nov 2019 17:53:55 +0100 Subject: [PATCH 1/2] convert protocal names to be found as labels --- ui/scripts/network.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index 7e5f554d08a5..c42c037dab5e 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -6843,7 +6843,8 @@ return []; } - var protocols = protocolCapabilities.value.split(','); +// make sure protocols are found in a script compatible way: i.e. "tcp,udp,tcp.proxy" , no minus sign or spaces + var protocols = protocolCapabilities.value.replace(/\s/g,'').replace('-','.').split(','); if (!protocols) { return []; From db35074be7a477a9da3cc9ccb78a09690cd0ffca Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Mon, 9 Dec 2019 11:19:04 +0100 Subject: [PATCH 2/2] format --- ui/scripts/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index c42c037dab5e..aa6af96afd47 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -6843,7 +6843,7 @@ return []; } -// make sure protocols are found in a script compatible way: i.e. "tcp,udp,tcp.proxy" , no minus sign or spaces + // make sure protocols are found in a script compatible way: i.e. "tcp,udp,tcp.proxy" , no minus sign or spaces var protocols = protocolCapabilities.value.replace(/\s/g,'').replace('-','.').split(','); if (!protocols) {