]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow status-server checks for TCP
authorAlan T. DeKok <aland@freeradius.org>
Wed, 4 Aug 2021 22:59:20 +0000 (18:59 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Aug 2021 22:59:20 +0000 (18:59 -0400)
nothing yet implements that, but it's a start.

We still have to allocate a permanent ID for status-server checks

src/main/realms.c

index 0f3ee3e606e39fb693e4c7858fd790d2d138aa80..ad5f546639487f356573f50fbf9a74ff9443b6fb 100644 (file)
@@ -898,8 +898,9 @@ home_server_t *home_server_afrom_cs(TALLOC_CTX *ctx, realm_config_t *rc, CONF_SE
                        cf_log_err_cs(cs, "Server not built with support for RADIUS over TCP");
                        goto error;
 #endif
-                       if (home->ping_check != HOME_PING_CHECK_NONE) {
-                               cf_log_err_cs(cs, "Only 'status_check = none' is allowed for home "
+                       if ((home->ping_check != HOME_PING_CHECK_NONE) &&
+                           (home->ping_check != HOME_PING_CHECK_STATUS_SERVER)) {
+                               cf_log_err_cs(cs, "Only 'status_check = status-server' is allowed for home "
                                              "servers with 'proto = tcp'");
                                goto error;
                        }