From 773c7954e4713322faea054e1033f0b4dd174207 Mon Sep 17 00:00:00 2001 From: hrzlgnm Date: Thu, 26 Sep 2024 21:26:12 +0200 Subject: [PATCH] Also check the prefix being "ipv6" when logging cache updates --- src/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.c b/src/cache.c index 0dbd7f0b..ec6dd00f 100644 --- a/src/cache.c +++ b/src/cache.c @@ -184,7 +184,7 @@ int write_cache_file(ddns_alias_t *alias, const char *name) cache_file(alias->name, name, path, sizeof(path)); fp = fopen(path, "w"); if (fp) { - if (strstr(name, "v6")) + if (strstr(name, "ipv6") == name) logit(LOG_NOTICE, "Updating IPv6 cache for %s", alias->name); else logit(LOG_NOTICE, "Updating IPv4 cache for %s", alias->name);