mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
dhtproxy: switch server to ipv6 (implicit ipv4 support)
This commit is contained in:
1 parent
4e934f8902
commit
13661929d1
1 file changed
+1
-1
@@ -74,8 +74,8 @@ DhtProxyServer::DhtProxyServer(std::shared_ptr<DhtRunner> dht, in_port_t port ,
|
||||
auto maxThreads = std::thread::hardware_concurrency() - 1;
|
||||
auto restThreads = maxThreads > 1 ? maxThreads : 1;
|
||||
auto settings = restinio::on_thread_pool<RestRouterTraits>(restThreads);
|
||||
settings.address("127.0.0.1"); // TODO ipv6 listener?
|
||||
settings.port(port);
|
||||
settings.protocol(restinio::asio_ns::ip::tcp::v6());
|
||||
settings.request_handler(this->createRestRouter());
|
||||
// time limits
|
||||
settings.read_next_http_message_timelimit(10s);
|
||||
|
||||
Reference in new issue
Block a user