From cc3c6fb047be529ff21ffbf8d32bd292ea673682 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 14 Apr 2016 15:09:01 +0800 Subject: [PATCH] vhost should have his own options Signed-off-by: Andy Green --- lib/context.c | 1 + lib/private-libwebsockets.h | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/context.c b/lib/context.c index 7c9250d98..be3c5eeca 100644 --- a/lib/context.c +++ b/lib/context.c @@ -227,6 +227,7 @@ lws_create_vhost(struct lws_context *context, vh->count_protocols++) ; + vh->options = context->options; vh->pvo = info->pvo; vh->keepalive_timeout = info->keepalive_timeout; diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index b6c9bedb9..89ab5411a 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -670,6 +670,7 @@ struct lws_vhost { int listen_port; unsigned int http_proxy_port; + unsigned int options; int count_protocols; int ka_time; int ka_probes;