Oops..

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
  [127.0.0.1]:12345

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.

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/

Attachment: signature.asc
Description: Digital signature

_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

Reply via email to