Browse Source

[network] do not append port to unix socket paths

x-ref:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877039
personal/stbuehler/cleanup-build
Glenn Strauss 4 years ago
parent
commit
c49f515096
  1. 6
      src/network.c

6
src/network.c

@ -405,8 +405,10 @@ int network_init(server *srv) {
b = buffer_init();
buffer_copy_buffer(b, srv->srvconf.bindhost);
buffer_append_string_len(b, CONST_STR_LEN(":"));
buffer_append_int(b, srv->srvconf.port);
if (b->ptr[0] != '/') { /*(skip adding port if unix socket path)*/
buffer_append_string_len(b, CONST_STR_LEN(":"));
buffer_append_int(b, srv->srvconf.port);
}
/* check if we already know this socket, and if yes, don't init it */
for (j = 0; j < srv->srv_sockets.used; j++) {

Loading…
Cancel
Save