mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
systemd-sockact: set port to 0 on unix domain
This commit is contained in:
parent
638558a4db
commit
c57733cb00
1 changed files with 3 additions and 1 deletions
|
@ -43,8 +43,10 @@ lws_systemd_inherited_fd(unsigned int index,
|
|||
|
||||
info->vh_listen_sockfd = (int)(SD_LISTEN_FDS_START + index);
|
||||
|
||||
if (sd_is_socket_unix(info->vh_listen_sockfd, 0, 0, NULL, 0))
|
||||
if (sd_is_socket_unix(info->vh_listen_sockfd, 0, 0, NULL, 0)) {
|
||||
info->options |= LWS_SERVER_OPTION_UNIX_SOCK;
|
||||
info->port = 0;
|
||||
}
|
||||
|
||||
if (sd_is_socket_inet(info->vh_listen_sockfd, AF_UNSPEC, 0, 1, 0)) {
|
||||
struct sockaddr_storage addr;
|
||||
|
|
Loading…
Add table
Reference in a new issue