fix parsing of IP-Urls
authorWilfried Goesgens <dothebart@citadel.org>
Wed, 10 Aug 2011 13:55:42 +0000 (13:55 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Wed, 10 Aug 2011 13:55:42 +0000 (13:55 +0000)
commit63499c15ae3c6c0a34b85d593d5743e8a7eb7447
treec64b68678e3b6d1d96dedf564fc4a12ca8d2a591
parent6b5f7c9bbe2f754fb0f2ff433b90dd76e76836eb
fix parsing of IP-Urls

  - need to point inet_pton() to the rightly casted pointer in case of non-IPv6
  - set the port using hton()
  - set the protocol depending on our findings
libcitadel/lib/urlhandling.c