]> git.meshlink.io Git - meshlink/blobdiff - src/net_setup.c
Add a minor number to the protocol version.
[meshlink] / src / net_setup.c
index f0e1cdfe948bdf1a75524c8c477a287b1a441b6c..7ceba36051629e1185262e26cd3803d67d9e089e 100644 (file)
@@ -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!");