/*
- * $Id: cache_cf.cc,v 1.324 1999/01/29 23:39:12 wessels Exp $
+ * $Id: cache_cf.cc,v 1.325 1999/04/07 21:39:04 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
if (Config.Program.redirect) {
if (Config.redirectChildren < 1) {
Config.redirectChildren = 0;
- safe_free(Config.Program.redirect);
+ wordlistDestroy(&Config.Program.redirect);
} else if (Config.redirectChildren > DefaultRedirectChildrenMax) {
debug(3, 0) ("WARNING: redirect_children was set to a bad value: %d\n",
Config.redirectChildren);
requirePathnameExists("cache_dns_program", Config.Program.dnsserver);
requirePathnameExists("unlinkd_program", Config.Program.unlinkd);
if (Config.Program.redirect)
- requirePathnameExists("redirect_program", Config.Program.redirect);
+ requirePathnameExists("redirect_program", Config.Program.redirect->key);
if (Config.Program.authenticate)
requirePathnameExists("authenticate_program", Config.Program.authenticate->key);
requirePathnameExists("Icon Directory", Config.icons.directory);
}
static int
-check_null_acl_access(acl_access *a)
+check_null_acl_access(acl_access * a)
{
return a == NULL;
}
#
-# $Id: cf.data.pre,v 1.145 1999/04/07 21:13:20 wessels Exp $
+# $Id: cf.data.pre,v 1.146 1999/04/07 21:39:05 wessels Exp $
#
#
# SQUID Internet Object Cache http://squid.nlanr.net/Squid/
NAME: redirect_program
-TYPE: string
+TYPE: wordlist
LOC: Config.Program.redirect
DEFAULT: none
DOC_START
/*
- * $Id: redirect.cc,v 1.78 1999/01/24 02:22:59 wessels Exp $
+ * $Id: redirect.cc,v 1.79 1999/04/07 21:39:06 wessels Exp $
*
* DEBUG: section 29 Redirector
* AUTHOR: Duane Wessels
return;
if (redirectors == NULL)
redirectors = helperCreate("redirector");
- wordlistAdd(&redirectors->cmdline, Config.Program.redirect);
+ redirectors->cmdline = Config.Program.redirect;
redirectors->n_to_start = Config.redirectChildren;
redirectors->ipc_type = IPC_TCP_SOCKET;
helperOpenServers(redirectors);
if (!redirectors)
return;
helperShutdown(redirectors);
- wordlistDestroy(&redirectors->cmdline);
if (!shutting_down)
return;
helperFree(redirectors);
/*
- * $Id: structs.h,v 1.276 1999/01/29 23:39:24 wessels Exp $
+ * $Id: structs.h,v 1.277 1999/04/07 21:39:06 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
char *effectiveGroup;
struct {
char *dnsserver;
- char *redirect;
+ wordlist *redirect;
wordlist *authenticate;
char *pinger;
char *unlinkd;