From d57e8e17bff41587242dd91df72bdda8f105eae9 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Tue, 1 May 2018 16:40:09 +0800 Subject: [PATCH] ping plugin: warn on invalid AddressFamily value instead of error --- src/ping.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ping.c b/src/ping.c index b07a4247..b619e37a 100644 --- a/src/ping.c +++ b/src/ping.c @@ -488,9 +488,7 @@ static int ping_config(const char *key, const char *value) /* {{{ */ } else if (strncmp(af, "ipv6", 4) == 0) { ping_af = AF_INET6; } else { - ERROR("ping plugin: Bad address family: %s", af); - free(af); - return 1; + WARNING("ping plugin: Ignoring invalid AddressFamily value %s", af); } free(af); -- 2.11.0