/*****************************************************************************/
/* MODULE INITIALIZATION STUFF */
/*****************************************************************************/
-void clenaup_inetcfg(void)
+void cleanup_inetcfg(void)
{
char *buf;
buf = inetcfg;
{
CtdlRegisterMessageHook(inetcfg_aftersave, EVT_AFTERSAVE);
inetcfg_init();
- CtdlRegisterCleanupHook(clenaup_inetcfg);
+ CtdlRegisterCleanupHook(cleanup_inetcfg);
}
/* return our module name for the log */
while (!IsEmptyStr(resp)) {
extract_token(buf, resp, 0, '\n', sizeof buf);
remove_token(resp, 0, '\n');
+
+ // VILE SLEAZY HACK: replace obsolete "directory" domains with "localhost"
+ char *d = strstr(buf, "|directory");
+ if (d != NULL) {
+ strcpy(d, "|localhost");
+ }
+
++num_recs;
if (num_recs == 1) recs = malloc(sizeof(char *));
else recs = realloc(recs, (sizeof(char *)) * num_recs);