X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Flocate_host.c;h=ecfc4d3da5ce962b63e3ff295caaa4ac6bb47ed9;hb=78b5de55e5fa58b1f16675222b65f9583f60fc57;hp=ae99fc3dc85562cb2f6744ff77230bf5916da5e9;hpb=c91e3e77cad3c8448c5c67a89b668edb93805210;p=citadel.git diff --git a/webcit/locate_host.c b/webcit/locate_host.c index ae99fc3dc..ecfc4d3da 100644 --- a/webcit/locate_host.c +++ b/webcit/locate_host.c @@ -23,8 +23,9 @@ #include "webcit.h" -#ifdef CTDL_IPV6 - +/* + * IPv6 enabled locate_host() + */ void locate_host(StrBuf *tbuf, int client_socket) { struct sockaddr_in6 clientaddr; @@ -42,8 +43,11 @@ void locate_host(StrBuf *tbuf, int client_socket) StrBufAppendBufPlain(tbuf, clienthost, -1, 0); } -#else /* CTDL_IPV6 */ +#if 0 +/* + * IPv4-only locate_host() + */ void locate_host(StrBuf *tbuf, int client_socket) { struct sockaddr_in cs; @@ -69,5 +73,4 @@ void locate_host(StrBuf *tbuf, int client_socket) } StrBufAppendBufPlain(tbuf, ch->h_name, -1, 0); } - -#endif /* CTDL_IPV6 */ +#endif