Make the XMPP server address configurable.

fix #3145
This commit is contained in:
Stuart Mumford authored and Florent Le Coz committed 2015-12-13 21:04:07 +01:00
1 parent 1f6eea62f4
commit 8ddbe8d3e6
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ XmppComponent::XmppComponent(std::shared_ptr<Poller> poller, const std::string&
void XmppComponent::start()
{
this->connect("127.0.0.1", Config::get("port", "5347"), false);
this->connect(Config::get("xmpp_server_ip", "127.0.0.1"), Config::get("port", "5347"), false);
}
bool XmppComponent::is_document_open() const