mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 10:17:16 +02:00
Set client option
This commit is contained in:
parent
b20bd90c03
commit
23107d62f9
1 changed files with 1 additions and 1 deletions
|
@ -611,7 +611,7 @@ boost::system::error_code ClientConnectionWss::doConnect(boost::asio::ip::basic_
|
||||||
// beast::get_lowest_layer(ssl_ws_).expires_after(std::chrono::seconds(30));
|
// beast::get_lowest_layer(ssl_ws_).expires_after(std::chrono::seconds(30));
|
||||||
|
|
||||||
// Set suggested timeout settings for the websocket
|
// Set suggested timeout settings for the websocket
|
||||||
// ssl_ws_.set_option(websocket::stream_base::timeout::suggested(beast::role_type::client));
|
ssl_ws_.set_option(websocket::stream_base::timeout::suggested(beast::role_type::client));
|
||||||
|
|
||||||
// Set SNI Hostname (many hosts need this to handshake successfully)
|
// Set SNI Hostname (many hosts need this to handshake successfully)
|
||||||
if (!SSL_set_tlsext_host_name(ssl_ws_.next_layer().native_handle(), server_.host.c_str()))
|
if (!SSL_set_tlsext_host_name(ssl_ws_.next_layer().native_handle(), server_.host.c_str()))
|
||||||
|
|
Loading…
Add table
Reference in a new issue