Skip to content

Commit c4b8c47

Browse files
committed
Server: change default host
1 parent ae238de commit c4b8c47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/server/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct SDParams {
102102

103103
//server things
104104
int port = 8080;
105-
std::string host = "localhost";
105+
std::string host = "127.0.0.1";
106106
};
107107

108108
void print_params(SDParams params) {
@@ -693,7 +693,7 @@ int main(int argc, const char* argv[]) {
693693
std::thread t([&]() { svr->listen_after_bind(); });
694694
svr->wait_until_ready();
695695

696-
printf("server listening");
696+
printf("Server listening at %s:%d\n",params.host,params.port);
697697

698698
while(1);
699699

0 commit comments

Comments
 (0)