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:
parent
68de7b481e
commit
76a3ada4eb
5 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue