diff --git a/backends/template/plugin.cpp b/backends/template/plugin.cpp index 4f6cfa84c433f5226eeb710863bf214ecd9afbe8..b955275adf52074e7ade05bafd11023c5b071a7e 100644 --- a/backends/template/plugin.cpp +++ b/backends/template/plugin.cpp @@ -20,7 +20,7 @@ Plugin::Plugin(Config *config, Swift::SimpleEventLoop *loop, const std::string & m_factories = new Swift::BoostNetworkFactories(loop); m_conn = m_factories->getConnectionFactory()->createConnection(); m_conn->onDataRead.connect(boost::bind(&Plugin::_handleDataRead, this, _1)); - m_conn->connect(Swift::HostAddressPort(Swift::HostAddress(host), port)); + m_conn->connect(Swift::HostAddressPort(SWIFT_HOSTADDRESS(host), port)); LOG4CXX_INFO(logger, "Starting the plugin."); }