From: Felix Fietkau Date: Mon, 16 Dec 2024 12:34:34 +0000 (+0100) Subject: unet-cli: only apply defaults on create X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=93461ca4c8270e33238e7f4b3108a5377d63cf75;p=project%2Funetd.git unet-cli: only apply defaults on create Signed-off-by: Felix Fietkau --- 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",