mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
docs: set port to zero when using unix domain sockets
When a server is set to listen to a unix domain socket, i.e. options field of struct lws_context_creation_info has the LWS_SERVER_OPTION_UNIX_SOCK flag set, the port must be set do zero, otherwise the unix socket is never created.
This commit is contained in:
parent
3b5b0078c5
commit
e8d13afeb2
1 changed files with 4 additions and 1 deletions
|
@ -334,7 +334,10 @@ struct lws_context_creation_info {
|
|||
*
|
||||
* You can also set port to 0, in which case the kernel will pick
|
||||
* a random port that is not already in use. You can find out what
|
||||
* port the vhost is listening on using lws_get_vhost_listen_port() */
|
||||
* port the vhost is listening on using lws_get_vhost_listen_port()
|
||||
*
|
||||
* If options specifies LWS_SERVER_OPTION_UNIX_SOCK, you should set
|
||||
* port to 0 */
|
||||
|
||||
unsigned int http_proxy_port;
|
||||
/**< VHOST: If http_proxy_address was non-NULL, uses this port */
|
||||
|
|
Loading…
Add table
Reference in a new issue