]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Make client/port/key-balance more like fail-over
authorAlan T. DeKok <aland@freeradius.org>
Mon, 12 Oct 2009 11:14:09 +0000 (13:14 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 20 Oct 2009 22:04:28 +0000 (00:04 +0200)
Previously, they would default to load-balancing across all
found servers.  Now they don't.  This makes keyed-balance proxying
more robust with EAP

src/main/realms.c

index a0cb7963e641404def3ae22fc808ca198a09a00e..925e23f98cd3670f8f3ce94d5a648ca3a696134b 100644 (file)
@@ -1939,7 +1939,7 @@ home_server *home_server_ldb(const char *realmname,
                /*
                 *      We've found the first "live" one.  Use that.
                 */
-               if (pool->type == HOME_POOL_FAIL_OVER) {
+               if (pool->type != HOME_POOL_LOAD_BALANCE) {
                        found = home;
                        break;
                }