From bf17f2b4b937df903ab294eea2918a049b5eddbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 25 Mar 2025 16:29:06 +0800 Subject: [PATCH] LocalIP: change `{name}` to `{ifname}` in `--localip-key-format` for consistancy Breaking change. Fix #1639 --- src/modules/localip/localip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/localip/localip.c b/src/modules/localip/localip.c index 2500ab32d..e1a5d1b30 100644 --- a/src/modules/localip/localip.c +++ b/src/modules/localip/localip.c @@ -26,7 +26,7 @@ static void formatKey(const FFLocalIpOptions* options, FFLocalIpResult* ip, uint ffStrbufClear(key); FF_PARSE_FORMAT_STRING_CHECKED(key, &options->moduleArgs.key, ((FFformatarg[]) { FF_FORMAT_ARG(index, "index"), - FF_FORMAT_ARG(ip->name, "name"), + FF_FORMAT_ARG(ip->name, "ifname"), FF_FORMAT_ARG(ip->mac, "mac"), FF_FORMAT_ARG(options->moduleArgs.keyIcon, "icon"), }));