Commandline option for outgoing interface
Usecase is: A host with multiple addresses on eth0. No Problem to select the address the host listens on, but the connections the core does to the irc servers are always from the first address which is shown with "ip addr". Would be great to be able to give a commandline option to the core similar to --listen to select the outgoing address. I dont know if this is even possible with posix/qt api or similar.
#1 Updated by katastrophe over 11 years ago
ok, isnt possible yet with qt.
with posix it is, just do bind to address with port 0 before connect.
as its possible to give QTcpSocket a sockfd, would be a temporary hack to give it a socket created with posix api ok till qt implements that?
i really need it on a host with several cores and v6 adresses. dont know how that behaves on other platforms as linux.
for the user it could either be a core commandline option or per irc connection or both (set standard via commandline and be able to change it in irc server settings)
#2 Updated by seezer about 8 years ago
We could support it for Qt5 builds (see http://qt-project.org/doc/qt-5/qabstractsocket.html#bin).
Perhaps a simple per user mapping could be done analog to --add-user cli argument?