Skip to content

Commit 9f9d71f

Browse files
committed
Update connection provider to use IPv4
1 parent 401b53b commit 9f9d71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/AppComponent.hpp

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

3939
/**

0 commit comments

Comments
 (0)