Commit Diff


commit - 610dd8c9f454e1625b0eddc16af87b765279b0a5
commit + 2fb25d87ff7b3572bc98a7bea5f7380727b180e5
blob - 7c62ab08d5caf265c2e5a4163965438fd218b859
blob + 5063726b9a209a27338b1b4ac917758c171bcac9
--- gotwebd/parse.y
+++ gotwebd/parse.y
@@ -1322,13 +1322,13 @@ int
 get_addrs(const char *addr, struct addresslist *al, in_port_t port)
 {
 	if (strcmp("", addr) == 0) {
-		if (host("0.0.0.0", al, 1, port, "0.0.0.0", -1) <= 0) {
+		if (host("127.0.0.1", al, 1, port, "127.0.0.1", -1) <= 0) {
 			yyerror("invalid listen ip: %s",
-			    "0.0.0.0");
+			    "127.0.0.1");
 			return (-1);
 		}
-		if (host("::", al, 1, port, "::", -1) <= 0) {
-			yyerror("invalid listen ip: %s", "::");
+		if (host("::1", al, 1, port, "::1", -1) <= 0) {
+			yyerror("invalid listen ip: %s", "::1");
 			return (-1);
 		}
 	} else {