[rrd-developers] src/rrd_daemon.c: Fix the port configuration for IPv6.

Florian Forster rrdtool at nospam.verplant.org
Thu Sep 25 19:23:18 CEST 2008


On Thu, Sep 25, 2008 at 07:18:16PM +0200, Florian Forster wrote:
> +  if (strchr (addr, '.') != NULL) /* Hostname or IPv4 */
> +  else if (*addr == '[') /* IPv6+port format */

I just realized that doing it this way around will not work with
IPv4-addresses formatted like

Guess that's not a biggy, but it doesn't match the documentation.
Switching the two if-blocks (check for '[' first, then for '.') will fix
the problem.

Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20080925/d1ca8cc0/attachment.bin 

More information about the rrd-developers mailing list