sock->my_ipaddr = ipaddr;
sock->my_port = listen_port;
+#ifdef WITH_PROXY
if (check_config) {
if (home_server_find(&sock->my_ipaddr, sock->my_port, sock->proto)) {
char buffer[128];
return 0; /* don't do anything */
}
+#endif
/*
* If we can bind to interfaces, do so,
return this;
}
+#ifdef WITH_PROXY
static int is_loopback(const fr_ipaddr_t *ipaddr)
{
/*
return 0;
}
+#endif
/*
* Generate a list of listeners. Takes an input list of
for (this = mainconfig.listen; this != NULL; this = this->next) {
listen_socket_t *sock;
- if ((this->type != RAD_LISTEN_AUTH) &&
- (this->type != RAD_LISTEN_ACCT)) continue;
+ if ((this->type != RAD_LISTEN_AUTH)
+#ifdef WITH_ACCOUNTING
+ && (this->type != RAD_LISTEN_ACCT)
+#endif
+ ) continue;
sock = this->data;
* FIXME: For TCP, ignore the *secondary*
* listeners associated with the main socket.
*/
- if ((this->type != RAD_LISTEN_AUTH) &&
- (this->type != RAD_LISTEN_ACCT)) continue;
+ if ((this->type != RAD_LISTEN_AUTH)
+#ifdef WITH_ACCOUNTING
+ && (this->type != RAD_LISTEN_ACCT)
+#endif
+ ) continue;
sock = this->data;