1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

ss: server: support unix sockets

This commit is contained in:
Andy Green 2020-11-06 20:47:20 +00:00
parent 6bc5c0ffac
commit 1476e60e75

View file

@ -694,6 +694,11 @@ lws_ss_create(struct lws_context *context, int tsi, const lws_ss_info_t *ssi,
i.vhost_name = h->policy->streamtype;
i.port = h->policy->port;
if (i.iface[0] == '+') {
i.iface++;
i.options |= LWS_SERVER_OPTION_UNIX_SOCK;
}
if (!ss_pcols[h->policy->protocol]) {
lwsl_err("%s: unsupp protocol", __func__);
goto late_bail;