Skip to content

Commit

Permalink
Update connectiono 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 3238172 commit 1041b4b
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 @@ -26,7 +26,7 @@ class AppComponent {
* Create ConnectionProvider component which listens on the port
*/
OATPP_CREATE_COMPONENT(std::shared_ptr<oatpp::network::ServerConnectionProvider>, 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});
}());

/**
Expand Down

0 comments on commit 1041b4b

Please # to comment.