Add the outgoing_bind option

Lets the admin choose a local address to bind each outgoing (IRC) socket.
This commit is contained in:
Florent Le Coz
2015-12-01 16:08:40 +01:00
parent 6dcb21a032
commit 241768836d
4 changed files with 46 additions and 0 deletions
+3
View File
@@ -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);
}