Skip to content

Commit

Permalink
server: fix unix domain socket for lws 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Jul 26, 2020
1 parent 5902726 commit e34fd09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.c
Expand Up @@ -458,6 +458,7 @@ int main(int argc, char **argv) {
if (endswith(info.iface, ".sock") || endswith(info.iface, ".socket")) {
#if defined(LWS_USE_UNIX_SOCK) || defined(LWS_WITH_UNIX_SOCK)
info.options |= LWS_SERVER_OPTION_UNIX_SOCK;
info.port = 0; // warmcat/libwebsockets#1985
strncpy(server->socket_path, info.iface, sizeof(server->socket_path) - 1);
#else
fprintf(stderr,
Expand Down

0 comments on commit e34fd09

Please sign in to comment.