[master] a167820 Correct comments

Federico G. Schwindt fgsch at lodoss.net
Sun Jun 19 15:09:05 CEST 2016


commit a167820281262fdec978ebb3c09405ad2e54ca9c
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Sun Jun 19 13:55:00 2016 +0100

    Correct comments

diff --git a/lib/libvarnish/vss.c b/lib/libvarnish/vss.c
index 3d40473..251b420 100644
--- a/lib/libvarnish/vss.c
+++ b/lib/libvarnish/vss.c
@@ -56,7 +56,7 @@
  * "0.0.0.0" - "0.0.0.0:80"
  * "[::1]" - "[::1]:80"
  * "[::]" - "[::]:80"
- * "::1"
+ * "::1" - "[::1]:80"
  *
  * See also RFC5952
  */
@@ -80,7 +80,10 @@ vss_parse(char *str, char **addr, char **port)
 		if (*p != ' ' && *p != ':')
 			return ("IPv6 address has wrong port separator");
 	} else {
-		/* IPv4 address of the form 127.0.0.1:80, or non-numeric */
+		/*
+		 * IPv4 address of the form 127.0.0.1:80, IPv6 address
+		 * without port or non-numeric.
+		 */
 		*addr = str;
 		p = strchr(str, ' ');
 		if (p == NULL)



More information about the varnish-commit mailing list