From 9f9d71f422c412f88ceb6bcbd5d658a850ccc1ab Mon Sep 17 00:00:00 2001 From: lganzzzo Date: Sat, 24 Oct 2020 02:04:14 +0300 Subject: [PATCH] Update connection provider to use IPv4 --- src/AppComponent.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AppComponent.hpp b/src/AppComponent.hpp index 15cf916..1409589 100644 --- a/src/AppComponent.hpp +++ b/src/AppComponent.hpp @@ -33,7 +33,7 @@ class AppComponent { */ OATPP_CREATE_COMPONENT(std::shared_ptr, serverConnectionProvider)([] { /* non_blocking connections should be used with AsyncHttpConnectionHandler for AsyncIO */ - return oatpp::network::tcp::server::ConnectionProvider::createShared({"localhost", 8000}); + return oatpp::network::tcp::server::ConnectionProvider::createShared({"0.0.0.0", 8000, oatpp::network::Address::IP_4}); }()); /**