1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/roles/http/server
Andy Green f6ae0edf8d strict host check vhost flag
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.
2018-11-13 09:55:06 +08:00
..
access-log.c lws_hdr_copy: ensure enough extra space 2018-10-26 16:14:30 +08:00
fops-zip.c refactor: core code in lib/core and private-libwebsockets.h to core/private.h 2018-05-03 10:49:36 +08:00
lejp-conf.c strict host check vhost flag 2018-11-13 09:55:06 +08:00
lws-spa.c lws_hdr_copy: ensure enough extra space 2018-10-26 16:14:30 +08:00
parsers.c fulltext search 2018-10-26 13:50:53 +08:00
ranges.c codacy: minor fixes 2018-10-13 08:16:27 +08:00
rewrite.c http proxy: client: unix socket support 2018-09-12 13:58:13 +08:00
server.c strict host check vhost flag 2018-11-13 09:55:06 +08:00