Merge branch 'collectd-4.0'
[collectd.git] / src / network.c
index ad8d530..b0f8303 100644 (file)
@@ -1249,7 +1249,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)