Choose a different Port when 655 isn't available when doing "tinc join".

This commit is contained in:
Guus Sliepen 2013-07-26 14:53:36 +02:00
parent 8f2db4afdd
commit 37cca72e6c
3 changed files with 35 additions and 28 deletions

View file

@ -695,6 +695,8 @@ ask_netname:
ecdsa_free(key);
rsa_free(rsa);
check_port(name);
fprintf(stderr, "Invitation succesfully accepted.\n");
shutdown(sock, SHUT_RDWR);
success = true;