dnl Process this file with autoconf to produce a configure script.
dnl $Id$
-AC_INIT([WebCit], [7.80], [http://www.citadel.org/])
+AC_INIT([WebCit], [7.81], [http://www.citadel.org/])
AC_SUBST(PROG_SUBDIRS)
#include "webcit.h"
-#ifdef CTDL_IPV6
-
+/*
+ * IPv6 enabled locate_host()
+ */
void locate_host(StrBuf *tbuf, int client_socket)
{
struct sockaddr_in6 clientaddr;
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;
}
StrBufAppendBufPlain(tbuf, ch->h_name, -1, 0);
}
-
-#endif /* CTDL_IPV6 */
+#endif
&Error);
}
-#ifdef CTDL_IPV6
-
/*
* This is a generic function to set up a master socket for listening on
* a TCP port. The server shuts down if the bind fails. (IPv4/IPv6 version)
return (s);
}
-#else /* CTDL_IPV6 */
-
+#if 0
/*
* This is a generic function to set up a master socket for listening on
- * a TCP port. The server shuts down if the bind fails.
+ * a TCP port. The server shuts down if the bind fails. (Old IPv4-only version)
*
* ip_addr IP address to bind
* port_number port number to bind
}
return (s);
}
-
-#endif /* CTDL_IPV6 */
+#endif
/*
#define PORT_NUM 2000 /* port number to listen on */
#define DEVELOPER_ID 0
#define CLIENT_ID 4
-#define CLIENT_VERSION 780 /* This version of WebCit */
-#define MINIMUM_CIT_VERSION 780 /* min required Citadel ver */
-#define LIBCITADEL_MIN 780 /* min required libcitadel ver */
+#define CLIENT_VERSION 781 /* This version of WebCit */
+#define MINIMUM_CIT_VERSION 781 /* min required Citadel ver */
+#define LIBCITADEL_MIN 781 /* min required libcitadel ver */
#define DEFAULT_HOST "localhost" /* Default Citadel server */
#define DEFAULT_PORT "504"
#define TARGET "webcit01" /* Target for inline URL's */