Commit bfcc4042 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add vgcname to host struct



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4395 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c332f6aa
......@@ -72,6 +72,7 @@ struct host {
VTAILQ_ENTRY(host) list;
int hnum;
struct token *name;
char *vgcname;
};
static const char *
......@@ -760,6 +761,8 @@ vcc_ParseSimpleDirector(struct tokenlist *tl, const struct token *t_first,
h->name = t_dir;
vcc_AddDef(tl, t_dir, R_BACKEND);
sprintf(vgcname, "VGC_backend__%.*s", PF(h->name));
h->vgcname = TlAlloc(tl, strlen(vgcname) + 1);
strcpy(h->vgcname, vgcname);
vcc_ParseHostDef(tl, &h->hnum, h->name, t_first, -1, vgcname);
ERRCHK(tl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment