Skip to content

Commit

Permalink
Update connection provider to use IPv4
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed Oct 23, 2020
1 parent 401b53b commit 9f9d71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AppComponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AppComponent {
*/
OATPP_CREATE_COMPONENT(std::shared_ptr<oatpp::network::ServerConnectionProvider>, 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});
}());

/**
Expand Down

0 comments on commit 9f9d71f

Please sign in to comment.