[master] 6187f45 UDS listen sockets restrict VCL to >= 4.1
Poul-Henning Kamp
phk at FreeBSD.org
Wed Mar 14 11:01:11 UTC 2018
commit 6187f45a3b598c6761c7b7849bcab28f6d6310bb
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Mar 14 10:55:41 2018 +0000
UDS listen sockets restrict VCL to >= 4.1
I had hoped for a more explanatory error message, but that is too
involved at this point.
diff --git a/bin/varnishd/mgt/mgt_acceptor.c b/bin/varnishd/mgt/mgt_acceptor.c
index bffd461..796a11b 100644
--- a/bin/varnishd/mgt/mgt_acceptor.c
+++ b/bin/varnishd/mgt/mgt_acceptor.c
@@ -268,6 +268,9 @@ MAC_Arg(const char *spec)
ARGV_ERR("Unix domain socket addresses must be absolute paths "
"in -a (%s)\n", la->endpoint);
+ if (*la->endpoint == '/' && heritage.min_vcl < 41)
+ heritage.min_vcl = 41;
+
for (int i = 2; av[i] != NULL; i++) {
char *eq, *val;
int len;
More information about the varnish-commit
mailing list