From 93461ca4c8270e33238e7f4b3108a5377d63cf75 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 16 Dec 2024 13:34:34 +0100 Subject: [PATCH] unet-cli: only apply defaults on create Signed-off-by: Felix Fietkau --- scripts/unet-cli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/unet-cli b/scripts/unet-cli index 9cbe64f..5efd570 100755 --- a/scripts/unet-cli +++ b/scripts/unet-cli @@ -399,10 +399,11 @@ switch (command) { case 'import': break; case 'create': -case 'set-config': for (let key, val in defaults) args[key] ??= `${val}`; + // fallthrough +case 'set-config': set_fields(net_data.config, { port: "int", keepalive: "int", -- 2.30.2