Fix use of alternate addresses
When a peer advertised several addresses, a node trying to create a tunnel to it never tried any other address than the first one. Before, we wrongly assumed OpenVPN would try all addresses before aborting (--ping-exit). New code reexecutes OpenVPN until all addresses are tried and update the peer db to reorder addresses if the first one failed.
Showing with 33 additions and 7 deletions