1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00

test-server-v2.0: disable setting default protocol

This commit is contained in:
Andy Green 2017-03-22 21:18:48 +08:00
parent 73ff23e288
commit 629e356bb2

View file

@ -148,13 +148,14 @@ static const struct lws_http_mount mount = {
* the effect is to set this protocol to be the default one for the vhost, * the effect is to set this protocol to be the default one for the vhost,
* ie, selected if no Protocol: header is sent with the ws upgrade. * ie, selected if no Protocol: header is sent with the ws upgrade.
*/ */
#if 0
static const struct lws_protocol_vhost_options pvo_opt = { static const struct lws_protocol_vhost_options pvo_opt = {
NULL, NULL,
NULL, NULL,
"default", "default",
"1" "1"
}; };
#endif
static const struct lws_protocol_vhost_options pvo_opt4a = { static const struct lws_protocol_vhost_options pvo_opt4a = {
NULL, NULL,
@ -205,7 +206,7 @@ static const struct lws_protocol_vhost_options pvo_1 = {
static const struct lws_protocol_vhost_options pvo = { static const struct lws_protocol_vhost_options pvo = {
&pvo_1, &pvo_1,
&pvo_opt, NULL, // &pvo_opt,
"dumb-increment-protocol", "dumb-increment-protocol",
"" ""
}; };