[master] 0aaacca Use "none" for -T as well

Federico G. Schwindt fgsch at lodoss.net
Tue Jul 19 10:37:08 CEST 2016


commit 0aaacca227e030e38fd9acd6b08864678c27d830
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Tue Jul 19 09:25:56 2016 +0100

    Use "none" for -T as well

diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index 2611e15..e51e3a4 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -704,7 +704,7 @@ main(int argc, char * const *argv)
 
 	if (M_arg != NULL && *M_arg == '\0')
 		M_arg = NULL;
-	if (T_arg != NULL && *T_arg == '\0')
+	if (T_arg != NULL && !strcmp(T_arg, "none"))
 		T_arg = NULL;
 
 	/* XXX: we can have multiple CLI actions above, is this enough ? */
diff --git a/doc/sphinx/reference/varnishd.rst b/doc/sphinx/reference/varnishd.rst
index 3e19dd4..0b31a48 100644
--- a/doc/sphinx/reference/varnishd.rst
+++ b/doc/sphinx/reference/varnishd.rst
@@ -139,7 +139,8 @@ OPTIONS
 -T <address[:port]>
 
   Offer a management interface on the specified address and port. See
-  `Management Interface`_ for a list of management commands.
+  `Management Interface`_ for a list of management commands.  To disable
+  the management interface use ``none``.
 
 -t TTL
 



More information about the varnish-commit mailing list