Put minor protocol version in connection options so other nodes can see it.

This allows two nodes that do not have a meta-connection with each other see
which version they are.
This commit is contained in:
Guus Sliepen 2012-07-17 18:05:55 +02:00
parent 68de7b481e
commit 76a3ada4eb
5 changed files with 6 additions and 2 deletions

View file

@ -411,6 +411,8 @@ static bool setup_myself(void) {
myself->connection->protocol_major = PROT_MAJOR;
myself->connection->protocol_minor = PROT_MINOR;
myself->options |= PROT_MINOR << 24;
if(!(name = get_name())) {
logger(DEBUG_ALWAYS, LOG_ERR, "Name for tinc daemon required!");
return false;