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:
parent
6bc5c0ffac
commit
1476e60e75
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue