Working on fix "stuck" outgoing connections.

This problem occurs on "road-warriors" when tincd setups
outgoing connections but you do not have any active uplink then
dns-lookups will fail and any following attempt to make outgoing
connections will keep failing forever.
This commit is contained in:
thorkill 2015-11-22 22:50:51 +01:00
parent dcf313cdbf
commit 703ed7fff6
3 changed files with 14 additions and 1 deletions

View file

@ -620,6 +620,8 @@ void setup_outgoing_connection(outgoing_t *outgoing) {
outgoing->aip = outgoing->ai = get_known_addresses(n);
if(!outgoing->ai) {
logger(DEBUG_ALWAYS, LOG_DEBUG, "No address known for %s", outgoing->name);
retry_outgoing(outgoing);
outgoing->is_alive = false;
return;
}
}