diff options
author | Omar Polo <op@omarpolo.com> | 2021-04-29 18:23:35 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-04-29 18:23:35 +0000 |
commit | cc8c2901ad544d336374887451dc8c85a5ae1264 (patch) | |
tree | 46f42e9929fd44cf9bf94a9a2b6a81de2f72a517 /gmid.c | |
parent | 8e8b2e252c37a1e633c33ac923ab78c3f1e8ab31 (diff) |
added ``alias'' option to define hostname aliases for a server
Diffstat (limited to 'gmid.c')
-rw-r--r-- | gmid.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -245,6 +245,7 @@ free_config(void) struct vhost *h, *th; struct location *l, *tl; struct envlist *e, *te; + struct alist *a, *ta; int v; v = conf.verbose; @@ -273,6 +274,11 @@ free_config(void) free(e); } + TAILQ_FOREACH_SAFE(a, &h->aliases, aliases, ta) { + free(a->alias); + free(a); + } + TAILQ_REMOVE(&hosts, h, vhosts); free(h); } |