From 986b0f340cdd27b2d1bd71094e4ca892e33acb99 Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Thu, 28 Nov 2019 17:53:55 +0100 Subject: [PATCH] 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 [];