X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_daemon.c;h=0ca1818d462b40e0bdd766c2de45eda6003178ef;hp=81c58e1ad1c3380b27cf5e6739d43f161d8b409a;hb=8ac2f607800738c25e8cae61adc81edd0f9a9e45;hpb=e8b2dea69851c592e404bdc1922e06602106af71 diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 81c58e1..0ca1818 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -2390,8 +2390,8 @@ static int open_listen_socket_network(const listen_socket_t *sock) /* {{{ */ fprintf (stderr, "rrdcached: Garbage after address: %s\n", port); return (-1); } - } /* if (*addr = ']') */ - else if (strchr (addr, '.') != NULL) /* Hostname or IPv4 */ + } /* if (*addr == '[') */ + else { port = rindex(addr, ':'); if (port != NULL)