mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
![]() https://github.com/warmcat/libwebsockets/issues/1423 If you vhost->options has the flag LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK, then if the server is sent an upgrade request, the content of the Host: header is required to match the vhost name + port. The port is set to the well-known values of 80 and 443 if no :port on the host: value, depending on tls or not on the connection. minimal-ws-server can now take a -h flag to set this. lejp-conf (eg, lwsws) can now take a flag strict-host-check on the vhost to enable it as well. |
||
---|---|---|
.. | ||
core | ||
event-libs | ||
misc | ||
plat | ||
roles | ||
tls | ||
README.md |
Library sources layout
Code that goes in the libwebsockets library itself lives down ./lib
Path | Sources |
---|---|
lib/core | Core lws code related to generic fd and wsi servicing and management |
lib/event-libs | Code containing optional event-lib specific adaptations |
lib/misc | Code for various mostly optional miscellaneous features |
lib/plat | Platform-specific adaptation code |
lib/roles | Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc |
lib/tls | Code supporting the various TLS libraries |
libwebsockets.h | Public API header for the whole of lws |