From 47d30b88432189a8f844d8f7c6ecc420a8bace9c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 21 Sep 2015 17:13:50 +1000 Subject: [PATCH] Check for redirecturls in redirector mode --- src/ckpool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ckpool.c b/src/ckpool.c index faf9fd7d..2c2f39f5 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -1757,6 +1757,8 @@ int main(int argc, char **argv) ckp.serverurl = ckzalloc(sizeof(char *)); if (ckp.proxy && !ckp.proxies) quit(0, "No proxy entries found in config file %s", ckp.config); + if (ckp.redirector && !ckp.redirecturls) + quit(0, "No redirect entries found in config file %s", ckp.config); /* Create the log directory */ trail_slash(&ckp.logdir);