X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Flisten.c;h=57c96070d7aaf445815a09e611c6a8d78a84649a;hb=bca85674a83f94b9cfae0ebdc129bbaf645c8f7d;hp=b6e2b4dbcd237b62f8b0630455123853aa0b9ab4;hpb=1147ab4f2843e6deee5fd07f2b716de7cbb1675b;p=freeradius.git diff --git a/src/main/listen.c b/src/main/listen.c index b6e2b4d..57c9607 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -84,7 +84,7 @@ static rad_listen_t *listen_alloc(RAD_LISTEN_TYPE type); /* * Find a per-socket client. */ -RADCLIENT *client_listener_find(const rad_listen_t *listener, +RADCLIENT *client_listener_find(rad_listen_t *listener, const fr_ipaddr_t *ipaddr, int src_port) { #ifdef WITH_DYNAMIC_CLIENTS @@ -884,6 +884,7 @@ static int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this) 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]; @@ -896,6 +897,7 @@ static int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this) return 0; /* don't do anything */ } +#endif /* * If we can bind to interfaces, do so,