diff --git a/src/tests/userregistry.cpp b/src/tests/userregistry.cpp index 9b5a7aa0b2d875cad9515ad7089803a888fe88e7..83fb21a13f0683d575f9bd2b8682a3fa58bb03c0 100644 --- a/src/tests/userregistry.cpp +++ b/src/tests/userregistry.cpp @@ -6,6 +6,8 @@ #include #include #include +#include +#include using namespace Transport; @@ -34,7 +36,7 @@ class UserRegistryTest : public CPPUNIT_NS :: TestFixture { userRegistry->onConnectUser.connect(bind(&UserRegistryTest::handleConnectUser, this, _1)); userRegistry->onDisconnectUser.connect(bind(&UserRegistryTest::handleDisconnectUser, this, _1)); - server = new Swift::Server(loop, factories, userRegistry, "localhost", 5222); + server = new Swift::Server(loop, factories, userRegistry, "localhost", "0.0.0.0", 5222); server->start(); connectionServer = server->getConnectionServer();