X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_setup.c;h=9293c1189bd014d576d62c2e79113fb2edca4895;hb=edc1efed3c0cf5aebb1c765066c0413757229a31;hp=4e1cacaf2e86a0a7e7183ef3a48962b369d65ff8;hpb=2055c3e21d5b3f4217883d52d5e5b0fbad504785;p=tinc diff --git a/src/net_setup.c b/src/net_setup.c index 4e1cacaf..9293c118 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -676,7 +676,7 @@ static bool add_listen_address(char *address, bool bindto) { int udp_fd = setup_vpn_in_socket((sockaddr_t *) aip->ai_addr); - if(tcp_fd < 0) { + if(udp_fd < 0) { close(tcp_fd); continue; } @@ -857,7 +857,7 @@ static bool setup_myself(void) { /* Generate packet encryption key */ if(!get_config_string(lookup_config(config_tree, "Cipher"), &cipher)) - cipher = xstrdup("blowfish"); + cipher = xstrdup("aes-256-cbc"); if(!strcasecmp(cipher, "none")) { myself->incipher = NULL; @@ -881,7 +881,7 @@ static bool setup_myself(void) { } if(!get_config_string(lookup_config(config_tree, "Digest"), &digest)) - digest = xstrdup("sha1"); + digest = xstrdup("sha256"); if(!strcasecmp(digest, "none")) { myself->indigest = NULL;