Skip to content

Commit

Permalink
Also check the prefix being "ipv6" when logging cache updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm committed Sep 26, 2024
1 parent 87d3945 commit 773c795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 773c795

Please sign in to comment.