Skip to content

Commit 0289fc6

Browse files
committed
Update connection provider to use IPv4
1 parent 6ae161f commit 0289fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AppComponent.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AppComponent {
3636
*/
3737
OATPP_CREATE_COMPONENT(std::shared_ptr<oatpp::network::ServerConnectionProvider>, serverConnectionProvider)([] {
3838
/* non_blocking connections should be used with AsyncHttpConnectionHandler for AsyncIO */
39-
return oatpp::network::tcp::server::ConnectionProvider::createShared({"localhost", 8000});
39+
return oatpp::network::tcp::server::ConnectionProvider::createShared({"0.0.0.0", 8000, oatpp::network::Address::IP_4});
4040
}());
4141

4242
/**

0 commit comments

Comments
 (0)