summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-12-01 16:08:40 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-12-01 16:08:40 +0100
commit241768836ddfb9e3609f987224cd821058fcc948 (patch)
tree8f7929225c3ef8dfb785ea0004d2ecf91db4dfe9 /src
parent6dcb21a032d47cd3a1f6f2d5d795a1c0f67b382e (diff)
downloadbiboumi-241768836ddfb9e3609f987224cd821058fcc948.tar.gz
biboumi-241768836ddfb9e3609f987224cd821058fcc948.tar.bz2
biboumi-241768836ddfb9e3609f987224cd821058fcc948.tar.xz
biboumi-241768836ddfb9e3609f987224cd821058fcc948.zip
Add the outgoing_bind option
Lets the admin choose a local address to bind each outgoing (IRC) socket.
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc_client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 93ea2ae..e53c540 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -86,6 +86,9 @@ void IrcClient::start()
this->bridge->send_xmpp_message(this->hostname, "", "Connecting to "s +
this->hostname + ":" + port + " (" +
(tls ? "encrypted" : "not encrypted") + ")");
+
+ this->bind_addr = Config::get("outgoing_bind", "");
+
this->connect(this->hostname, port, tls);
}