Add the outgoing_bind option
Lets the admin choose a local address to bind each outgoing (IRC) socket.
This commit is contained in:
@@ -224,6 +224,12 @@ protected:
|
||||
|
||||
bool hostname_resolution_failed;
|
||||
|
||||
/**
|
||||
* Address to bind the socket to, before calling connect().
|
||||
* If empty, it’s equivalent to binding to INADDR_ANY.
|
||||
*/
|
||||
std::string bind_addr;
|
||||
|
||||
private:
|
||||
TCPSocketHandler(const TCPSocketHandler&) = delete;
|
||||
TCPSocketHandler(TCPSocketHandler&&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user