X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_setup.c;h=7ceba36051629e1185262e26cd3803d67d9e089e;hb=9708bbfa8e3094de8932a30b1d24c661558d8a03;hp=543dad303b00ee00b40939eb9d03c26b1df08234;hpb=f4010694b3b16453e5e6298c208910264e326978;p=tinc diff --git a/src/net_setup.c b/src/net_setup.c index 543dad30..7ceba360 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -239,7 +239,8 @@ static bool setup_myself(void) { myself->connection->hostname = xstrdup("MYSELF"); myself->connection->options = 0; - myself->connection->protocol_version = PROT_CURRENT; + myself->connection->protocol_major = PROT_MAJOR; + myself->connection->protocol_minor = PROT_MINOR; if(!get_config_string(lookup_config(config_tree, "Name"), &name)) { /* Not acceptable */ logger(LOG_ERR, "Name for tinc daemon required!"); @@ -608,7 +609,7 @@ void close_network_connections(void) { for(node = connection_tree->head; node; node = next) { next = node->next; c = node->data; - c->outgoing = false; + c->outgoing = NULL; terminate_connection(c, false); }