Bug #4880 » Server.patch
Server.new 2016-04-28 11:01:37.477095200 +0200 | ||
---|---|---|
#ifdef HTTP_WITH_SSL
|
||
LOG_INFO_S(&wt_, "starting server: https://" <<
|
||
config_.httpsAddress() << ":" << config_.httpsPort());
|
||
const std::string httpsPort = config_.httpsPort();
|
||
if (config_.hasSslPasswordCallback())
|
||
ssl_context_.set_password_callback(config_.sslPasswordCallback());
|
||
... | ... | |
asio::ip::tcp::endpoint ssl_endpoint;
|
||
#ifndef NO_RESOLVE_ACCEPT_ADDRESS
|
||
asio::ip::tcp::resolver::query ssl_query(config_.httpsAddress(),
|
||
config_.httpsPort());
|
||
httpsPort);
|
||
ssl_endpoint = *resolver.resolve(ssl_query);
|
||
#else // !NO_RESOLVE_ACCEPT_ADDRESS
|
||
ssl_endpoint.address(asio::ip::address::from_string(config_.httpsAddress()));
|