Browse Source

[core] allow '*' in "*:80" socket spec

master
Glenn Strauss 10 months ago
parent
commit
086945bfb0
  1. 4
      src/network.c

4
src/network.c

@ -120,6 +120,10 @@ static int network_host_parse_addr(server *srv, sock_addr *addr, socklen_t *addr
return -1;
}
}
if (h[0] == '*' && h[1] == '\0') {
family = AF_INET;
++h;
}
chost = *h ? h : family == AF_INET ? "0.0.0.0" : "::";
if (1 !=
sock_addr_from_str_hints(addr,addr_len,chost,family,port,srv->errh)) {

Loading…
Cancel
Save