From ba5b45d9d24db12d3df3bed3dbbd5b210e7e62c6 Mon Sep 17 00:00:00 2001 From: Jan Jurzitza Date: Fri, 23 Feb 2024 00:10:34 +0100 Subject: [PATCH] fix ServiceDetection port input --- kraken_frontend/src/views/workspace/workspace-attacks.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/kraken_frontend/src/views/workspace/workspace-attacks.tsx b/kraken_frontend/src/views/workspace/workspace-attacks.tsx index d37b5a372..61a39fadc 100644 --- a/kraken_frontend/src/views/workspace/workspace-attacks.tsx +++ b/kraken_frontend/src/views/workspace/workspace-attacks.tsx @@ -321,6 +321,7 @@ const ATTACKS: AllAttackDescr = { defaultValue: ["1-65535"], prefill: ["port"], type: PortListInput, + preprocess: (v) => (typeof v == "number" ? [v] : v), }, connectTimeout: { label: "Connect Timeout (in ms)",