Commit e5da6ec9 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Use ndirector, not serial in DNS director.

The test case for this doesn't trigger, but the failing VCL (when
given in a file with -f) looks like:

director squid round-robin {
	 { .backend = { .host = "127.0.0.1"; .port = "3131"; } }
}

director dnsdir dns {
	 .list = {
	       "201.7.184.0"/32;
	 }
}

sub vcl_recv {
    set req.backend = dnsdir;
}

Fixes #1295
parent 7b4557a3
......@@ -87,7 +87,7 @@ print_backend(struct vcc *tl,
AN(vsb);
tl->fb = vsb;
Fc(tl, 0, "\t{ .host = VGC_backend_%s },\n",vgcname);
Fh(tl, 1, "\n#define VGC_backend_%s %d\n", vgcname, serial);
Fh(tl, 1, "\n#define VGC_backend_%s %d\n", vgcname, tl->ndirector);
Fb(tl, 0, "\nstatic const struct vrt_backend vgc_dir_priv_%s = {\n",
vgcname);
......
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