mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
vhost: server: Ignore a vhost port mismatch when using CONTEXT_PORT_NO_LISTEN_SERVER
https://github.com/warmcat/libwebsockets/issues/3044
This commit is contained in:
parent
f88792df37
commit
43df4901ee
1 changed files with 2 additions and 1 deletions
|
@ -2153,7 +2153,8 @@ lws_confirm_host_header(struct lws *wsi)
|
|||
if (e != LWS_TOKZE_ENDED)
|
||||
goto bad_format;
|
||||
|
||||
if (wsi->a.vhost->listen_port != port) {
|
||||
if (wsi->a.vhost->listen_port != port &&
|
||||
wsi->a.vhost->listen_port != CONTEXT_PORT_NO_LISTEN_SERVER) {
|
||||
lwsl_info("%s: host port %d mismatches vhost port %d\n",
|
||||
__func__, port, wsi->a.vhost->listen_port);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue