projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* comment on the reson for calling setlocale
[rrdtool.git]
/
src
/
rrd_client.c
diff --git
a/src/rrd_client.c
b/src/rrd_client.c
index
287f642
..
a4f1ba9
100644
(file)
--- a/
src/rrd_client.c
+++ b/
src/rrd_client.c
@@
-436,8
+436,8
@@
static int rrdc_connect_network (const char *addr_orig) /* {{{ */
rrd_set_error("garbage after address: %s", port);
return (-1);
}
- } /* if (*addr =
']
') */
- else
if (strchr (addr, '.') != NULL) /* Hostname or IPv4 */
+ } /* if (*addr =
= '[
') */
+ else
{
port = rindex(addr, ':');
if (port != NULL)