Suppress more ping check none
authorAlan T. DeKok <aland@freeradius.org>
Sat, 30 May 2009 07:40:05 +0000 (09:40 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 30 May 2009 07:40:05 +0000 (09:40 +0200)
If the home server is zombie, and status_check=none, don't ping it

src/main/event.c

index 523a505..d3db7ea 100644 (file)
@@ -763,7 +763,8 @@ static void ping_home_server(void *ctx)
        REQUEST *request;
        VALUE_PAIR *vp;
 
-       if (home->state == HOME_STATE_ALIVE) {
+       if ((home->state == HOME_STATE_ALIVE) ||
+           (home->ping_check == HOME_PING_CHECK_NONE)) {
                return;
        }