skip virtual servers in a pool
authorAlan T. DeKok <aland@freeradius.org>
Mon, 26 Sep 2016 20:20:30 +0000 (16:20 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 Sep 2016 20:20:30 +0000 (16:20 -0400)
src/modules/rlm_realm/rlm_realm.c

index 09f9f0f..2892e7f 100644 (file)
@@ -308,6 +308,8 @@ static int check_for_realm(void *instance, REQUEST *request, REALM **returnrealm
                 *      send it there again.
                 */
                for (i = 0; i < realm->acct_pool->num_home_servers; i++) {
+                       if (realm->acct_pool->servers[i]->ipaddr.af == AF_UNSPEC) continue;
+
                        if (fr_ipaddr_cmp(&realm->acct_pool->servers[i]->ipaddr, &my_ipaddr) == 0) {
                                RDEBUG2("Suppressing proxy due to FreeRADIUS-Proxied-To");
                                return RLM_MODULE_OK;