summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-06-08 23:30:17 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-06-08 23:30:17 +0200
commit1604320a2398901aa7662ece857e9bd217e8b06a (patch)
treec8356f74dcf33dc8048192e57bb83e3fc4da86d0 /src/xmpp
parent8b30e312bbc0728b527941d5b0a6d0f621025ed0 (diff)
downloadbiboumi-1604320a2398901aa7662ece857e9bd217e8b06a.tar.gz
biboumi-1604320a2398901aa7662ece857e9bd217e8b06a.tar.bz2
biboumi-1604320a2398901aa7662ece857e9bd217e8b06a.tar.xz
biboumi-1604320a2398901aa7662ece857e9bd217e8b06a.zip
Make the XMPP component port configurable
fix #2541
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/xmpp_component.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index 06db085..4c9c8ff 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -2,8 +2,8 @@
#include <logger/logger.hpp>
#include <xmpp/xmpp_component.hpp>
+#include <config/config.hpp>
#include <xmpp/jid.hpp>
-
#include <utils/sha1.hpp>
#include <stdexcept>
@@ -68,7 +68,7 @@ XmppComponent::~XmppComponent()
void XmppComponent::start()
{
- this->connect("127.0.0.1", "5347", false);
+ this->connect("127.0.0.1", Config::get("port", "5347"), false);
}
bool XmppComponent::is_document_open() const