[master] ed66b6edd Improve vss_parse documentation

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu May 9 08:21:09 UTC 2019


commit ed66b6edd27572b1838e1c703cb27e42a29b922a
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Thu May 9 10:19:33 2019 +0200

    Improve vss_parse documentation

diff --git a/lib/libvarnish/vss.c b/lib/libvarnish/vss.c
index 6ba726d85..ebbdf4f2b 100644
--- a/lib/libvarnish/vss.c
+++ b/lib/libvarnish/vss.c
@@ -46,14 +46,15 @@
 
 /*
  * Take a string provided by the user and break it up into address and
- * port parts.  Examples of acceptable input include:
+ * port parts. The address and port separator may be either a colon or
+ * a whitespace. Examples of acceptable input include:
  *
- * "localhost" - "localhost:80"
- * "127.0.0.1" - "127.0.0.1:80"
- * "0.0.0.0" - "0.0.0.0:80"
- * "[::1]" - "[::1]:80"
- * "[::]" - "[::]:80"
- * "::1" - "[::1]:80"
+ * "localhost" - "localhost:80" - "localhost 80"
+ * "127.0.0.1" - "127.0.0.1:80" - "127.0.0.1 80"
+ * "0.0.0.0"   - "0.0.0.0:80"   - "0.0.0.0 80"
+ * "[::1]"     - "[::1]:80"     - "[::1] 80"
+ * "[::]"      - "[::]:80"      - "[::] 80"
+ * "::1"       - "[::1]:80"     - "::1 80"
  *
  * See also RFC5952
  */


More information about the varnish-commit mailing list