]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
it doesn't make sense to replicate and have status checks
authorAlan T. DeKok <aland@freeradius.org>
Thu, 10 Aug 2017 09:15:53 +0000 (11:15 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 10 Aug 2017 09:15:53 +0000 (11:15 +0200)
src/modules/rlm_radius/rlm_radius.c

index 376b03f52ce06745ee625c8b7e00540bc9c8db74..5dd65e3611f1260b1126e2d8c7de67ee729f3495 100644 (file)
@@ -517,11 +517,21 @@ static int mod_bootstrap(void *instance, CONF_SECTION *conf)
         */
        if (inst->status_check && (inst->status_check != FR_CODE_STATUS_SERVER) &&
            !inst->allowed[inst->status_check]) {
-               cf_log_err(inst->io_conf, "Using 'status_check = %s' requires also 'type = %s'",
+               cf_log_err(conf, "Using 'status_check = %s' requires also 'type = %s'",
                           fr_packet_codes[inst->status_check], fr_packet_codes[inst->status_check]);
                return -1;
        }
 
+       /*
+        *      If we're replicating, we don't care if the other end
+        *      is alive.
+        */
+       if (inst->replicate && inst->status_check) {
+               cf_log_warn(conf, "Ignoring 'status_check = %s' due to 'replicate = true'",
+                           fr_packet_codes[inst->status_check]);
+               inst->status_check = 0;
+       }
+
        /*
         *      Set limits on retransmission timers
         */