Project

General

Profile

Feature #1040

Commandline option for outgoing interface

Added by katastrophe about 14 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Quassel Core
Target version:
-
Start date:
12/06/2010
Due date:
% Done:

0%

Estimated time:
OS:
Any

Description

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.


Related issues

Has duplicate Quassel IRC - Feature #1255: Ability to select source IP for outgoing connectionsClosed2013-12-03

History

#1 Updated by katastrophe almost 14 years ago

ok, isnt possible yet with qt.

http://bugreports.qt.nokia.com/browse/QTBUG-121

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 over 10 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?

#3 Updated by ZeiP almost 9 years ago

Any advances on this? It's a quite basic feature of an IRC client, it'd be very useful to have.

Also available in: Atom PDF