Commit a1678202 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Correct comments

parent ad58dd02
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
* "0.0.0.0" - "0.0.0.0:80" * "0.0.0.0" - "0.0.0.0:80"
* "[::1]" - "[::1]:80" * "[::1]" - "[::1]:80"
* "[::]" - "[::]:80" * "[::]" - "[::]:80"
* "::1" * "::1" - "[::1]:80"
* *
* See also RFC5952 * See also RFC5952
*/ */
...@@ -80,7 +80,10 @@ vss_parse(char *str, char **addr, char **port) ...@@ -80,7 +80,10 @@ vss_parse(char *str, char **addr, char **port)
if (*p != ' ' && *p != ':') if (*p != ' ' && *p != ':')
return ("IPv6 address has wrong port separator"); return ("IPv6 address has wrong port separator");
} else { } 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; *addr = str;
p = strchr(str, ' '); p = strchr(str, ' ');
if (p == NULL) if (p == NULL)
......
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