bwi/v2.3.0 #29
@ -78,9 +78,7 @@ class WebSocket {
|
||||
info.port = CONTEXT_PORT_NO_LISTEN;
|
||||
info.protocols = protocols;
|
||||
info.options = LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT;
|
||||
|
||||
context = lws_create_context(&info);
|
||||
|
||||
|
||||
if(cfg.proxyEnabled && (cfg.proxyType == "http" || cfg.proxyType == "https")) {
|
||||
assert(cfg.proxyType.has_value());
|
||||
assert(cfg.proxyHost.has_value());
|
||||
@ -100,6 +98,8 @@ class WebSocket {
|
||||
info.http_proxy_address = proxyUrl.c_str();
|
||||
info.http_proxy_port = config.proxyPort.value_or(8080);
|
||||
}
|
||||
|
||||
context = lws_create_context(&info);
|
||||
|
||||
const std::string_view prefix = "https://";
|
||||
if(urlv.substr(0, prefix.size()) == prefix)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user