Skip to content

Commit

Permalink
systemd-sockact: set port to 0 on unix domain
Browse files Browse the repository at this point in the history
  • Loading branch information
lws-team committed Jan 15, 2024
1 parent 638558a commit c57733c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/plat/unix/unix-systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c57733c

Please sign in to comment.