The RMAINT state happens when a server doesn't get a valid DNS response
past the hold time. If the address is forced on the CLI, we must use it
and leave the RMAINT state.
char *addr = NULL;
char *port = NULL;
if (strlen(args[4]) == 0) {
- appctx->ctx.cli.msg = "set server <b>/<s> requires an <addr> .\n";
+ appctx->ctx.cli.msg = "set server <b>/<s> addr requires an address and optionally a port.\n";
appctx->st0 = STAT_CLI_PRINT;
return 1;
}
appctx->ctx.cli.msg = warning;
appctx->st0 = STAT_CLI_PRINT;
}
+ srv_clr_admin_flag(sv, SRV_ADMF_RMAINT);
}
else {
appctx->ctx.cli.msg = "'set server <srv>' only supports 'agent', 'health', 'state', 'weight', 'addr' and 'check-port'.\n";