diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/fail_over.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index a16ab336..002d6d57 100644 --- a/src/providers/fail_over.c +++ b/src/providers/fail_over.c @@ -1512,10 +1512,11 @@ void fo_reset_services(struct fo_ctx *fo_ctx) DLIST_FOR_EACH(service, fo_ctx->service_list) { DLIST_FOR_EACH(server, service->server_list) { - fo_set_server_status(server, SERVER_NAME_NOT_RESOLVED); - fo_set_port_status(server, PORT_NEUTRAL); if (server->srv_data != NULL) { set_srv_data_status(server->srv_data, SRV_NEUTRAL); + } else { + fo_set_server_status(server, SERVER_NAME_NOT_RESOLVED); + fo_set_port_status(server, PORT_NEUTRAL); } } } |