From 1041b4bea01040c34660401b75bfd4c0cffa6cea Mon Sep 17 00:00:00 2001 From: lganzzzo Date: Sat, 24 Oct 2020 02:06:10 +0300 Subject: [PATCH] Update connectiono 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 13afab5..415008f 100644 --- a/src/AppComponent.hpp +++ b/src/AppComponent.hpp @@ -26,7 +26,7 @@ class AppComponent { * Create ConnectionProvider component which listens on the port */ OATPP_CREATE_COMPONENT(std::shared_ptr, serverConnectionProvider)([] { - 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}); }()); /**