• Yossi Gottlieb's avatar
    Add bind-source-addr configuration argument. (#9142) · f233c4c5
    Yossi Gottlieb authored
    In the past, the first bind address that was explicitly specified was
    also used to bind outgoing connections. This could result with some
    problems. For example: on some systems using `bind 127.0.0.1` would
    result with outgoing connections also binding to `127.0.0.1` and failing
    to connect to remote addresses.
    
    With the recent change to the way `bind` is handled, this presented
    other issues:
    
    * The default first bind address is '*' which is not a valid address.
    * We make no distinction between user-supplied config that is identical
    to the default, and the default config.
    
    This commit addresses both these issues by introducing an explicit
    configuration parameter to control the bind address on outgoing
    connections.
    f233c4c5
server.c 232 KB