diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index d3b5215a..3a37b4fe 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -740,7 +740,7 @@ struct libwebsocket_extension { * @port: Port to listen on... you can use 0 to suppress listening on * any port, that's what you want if you are not running a * websocket server at all but just using it as a client - * @interface: NULL to bind the listen socket to all interfaces, or the + * @iface: NULL to bind the listen socket to all interfaces, or the * interface name, eg, "eth2" * @protocols: Array of structures listing supported protocols and a protocol- * specific callback for each one. The list is ended with an diff --git a/libwebsockets-api-doc.html b/libwebsockets-api-doc.html index a07df434..5839ac99 100644 --- a/libwebsockets-api-doc.html +++ b/libwebsockets-api-doc.html @@ -971,6 +971,7 @@ all sessions, etc, if it wants

struct lws_context_creation_info -

struct lws_context_creation_info {
    int port;
+    const char * iface;
    struct libwebsocket_protocols * protocols;
    struct libwebsocket_extension * extensions;
    const char * ssl_cert_filepath;
@@ -990,6 +991,9 @@ all sessions, etc, if it wants
Port to listen on... you can use 0 to suppress listening on any port, that's what you want if you are not running a websocket server at all but just using it as a client +
iface +
NULL to bind the listen socket to all interfaces, or the +interface name, eg, "eth2"
protocols
Array of structures listing supported protocols and a protocol- specific callback for each one. The list is ended with an