Ticket #49 (new defect)

Opened 22 months ago

Last modified 15 months ago

Outgoing connections should have an option for the IP to bind to

Reported by: smoku Owned by: smoku
Priority: major Component: General
Version: 2.1 Keywords:
Cc: Tracforge_linkmap:
Blocking: Blocked By:

Description

I've got a server with several IPs. The default IP doesn't have a global route, but another IP it has does. There should be a config option for which IP outgoing connections bind() to before connect()ing for s2s. int mio_connect(mio_t m, int port, char *hostip, mio_handler_t app, void *arg) is probably the place to make the change, althoug that's called by all the _connect functions so maybe there needs to be a few prefs.

Change History

Changed 15 months ago by markdoliner

I thought the OS was supposed to determine which IP to use for outgoing connections based on the IP address you're connecting to and the kernel's routing table. Like, isn't there only one default route which is used for all connections to the outside world?

Note: See TracTickets for help on using tickets.