Make the XMPP server address configurable.

fix #3145
This commit is contained in:
Stuart Mumford
2015-12-13 21:04:07 +01:00
committed by Florent Le Coz
parent 1f6eea62f4
commit 8ddbe8d3e6
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -47,6 +47,12 @@ The configuration file uses a simple format of the form
This password must be configured in the XMPP server, associated with the This password must be configured in the XMPP server, associated with the
external component on *hostname*. external component on *hostname*.
`xmpp_server_ip`
The IP address to connect to the XMPP server on. The connection to the XMPP
server is unencrypted, so the biboumi instance and the server should normally
be on the same host. The default value is 127.0.0.1.
`port` `port`
The TCP port to use to connect to the local XMPP component. The default The TCP port to use to connect to the local XMPP component. The default
+1 -1
View File
@@ -61,7 +61,7 @@ XmppComponent::XmppComponent(std::shared_ptr<Poller> poller, const std::string&
void XmppComponent::start() 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 bool XmppComponent::is_document_open() const