summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2013-11-10 05:10:54 +0100
committerFlorent Le Coz <louiz@louiz.org>2013-11-10 05:10:54 +0100
commita992e281c4a8eb0542abf8475fcd62f297527447 (patch)
tree71fa8a99c7e5364d4e81f7d3a2a7012c90932883 /src/xmpp
parent0bb7ee0127a625ca8b6c25d9f593bfaa3d5af84b (diff)
downloadbiboumi-a992e281c4a8eb0542abf8475fcd62f297527447.tar.gz
biboumi-a992e281c4a8eb0542abf8475fcd62f297527447.tar.bz2
biboumi-a992e281c4a8eb0542abf8475fcd62f297527447.tar.xz
biboumi-a992e281c4a8eb0542abf8475fcd62f297527447.zip
Connect to localhost instead of the served hostname
Because the XMPP component connection is only available locally, the XMPP servers proably only listen on 127.0.0.1 instead of 0.0.0.0.
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 4d981fa..ba45fe4 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -44,7 +44,7 @@ XmppComponent::~XmppComponent()
void XmppComponent::start()
{
- this->connect(this->served_hostname, "5347");
+ this->connect("127.0.0.1", "5347");
}
void XmppComponent::send_stanza(const Stanza& stanza)
@@ -60,7 +60,7 @@ void XmppComponent::on_connected()
XmlNode node("stream:stream", nullptr);
node["xmlns"] = COMPONENT_NS;
node["xmlns:stream"] = STREAM_NS;
- node["to"] = "irc.abricot";
+ node["to"] = this->served_hostname;
this->send_stanza(node);
}