Skip to content

Commit

Permalink
Change connection provider settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed Oct 11, 2020
1 parent 47f5a47 commit 17d572e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AppComponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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
4 changes: 2 additions & 2 deletions utility/install-oatpp-modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ cd $MODULE_NAME
mkdir build
cd build

cmake ..
make install
cmake -DOATPP_BUILD_TESTS=OFF -DCMAKE_BUILD_TYPE=Release ..
make install -j 6

cd ../../

Expand Down

0 comments on commit 17d572e

Please sign in to comment.