From acf316a5da2d39e4b4513570bf76b8f75de55167 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 19 Aug 2007 17:19:12 +0200 Subject: [PATCH] network plugin: Allow port arguments to be numeric. --- src/network.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/network.c b/src/network.c index 34385bf6..84e77733 100644 --- a/src/network.c +++ b/src/network.c @@ -1232,7 +1232,11 @@ static int network_config (const char *key, const char *val) && (fields_num != 2)) return (1); else if (fields_num == 2) + { + if ((service = strchr (fields[1], '.')) != NULL) + *service = '\0'; service = fields[1]; + } node = fields[0]; if (strcasecmp ("Listen", key) == 0) -- 2.11.0