diff --git a/examples/simple_example/main.cc b/examples/simple_example/main.cc index c302a193..13ae8be0 100755 --- a/examples/simple_example/main.cc +++ b/examples/simple_example/main.cc @@ -98,8 +98,8 @@ int main() { std::cout << banner << std::endl; - app().addListener("::1", 8848); - //app().addListener("0.0.0.0", 8848); + //app().addListener("::1", 8848); + app().addListener("0.0.0.0", 8848); #ifdef USE_OPENSSL //https drogon::HttpAppFramework::instance().setSSLFiles("server.pem", "server.pem"); diff --git a/examples/simple_example_test/main.cc b/examples/simple_example_test/main.cc index 9f134fdd..fea291dc 100644 --- a/examples/simple_example_test/main.cc +++ b/examples/simple_example_test/main.cc @@ -629,7 +629,7 @@ int main(int argc, char *argv[]) do { std::promise pro1; - auto client = HttpClient::newHttpClient("::1", 8848, false, loop[0].getLoop()); + auto client = HttpClient::newHttpClient("127.0.0.1", 8848, false, loop[0].getLoop()); doTest(client, pro1); #ifdef USE_OPENSSL std::promise pro2;