commit a90e31174c5788d5225bd2c2363056b86f670c42 from: Stefan Sperling via: Thomas Adam date: Sat Aug 27 17:51:57 2022 UTC gotwebd: listen on localhost only by default ok tracey commit - 9d7714e36f114695b3a1737360a6ef12b361860d commit + a90e31174c5788d5225bd2c2363056b86f670c42 blob - 74cd66b0d5b3dac3614ec5c64baabedfc40d2c9e blob + 2b149a2d3c558ef24fa1754bd315347e051675a3 --- gotwebd/parse.y +++ gotwebd/parse.y @@ -1326,13 +1326,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 {