Do not append an address to ANS_KEY messages if we don't know any address.
This would let tinc raise an exception when an ANS_KEY request crossed a DEL_EDGE request for the node sending the key.
This commit is contained in:
		
							parent
							
								
									798fa2f04c
								
							
						
					
					
						commit
						4b6a9f1c1f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -229,7 +229,7 @@ bool ans_key_h(connection_t *c) { | ||||||
| 			return true; | 			return true; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		if(!*address) { | 		if(!*address && from->address.sa.sa_family != AF_UNSPEC) { | ||||||
| 			char *address, *port; | 			char *address, *port; | ||||||
| 			ifdebug(PROTOCOL) logger(LOG_DEBUG, "Appending reflexive UDP address to ANS_KEY from %s to %s", from->name, to->name); | 			ifdebug(PROTOCOL) logger(LOG_DEBUG, "Appending reflexive UDP address to ANS_KEY from %s to %s", from->name, to->name); | ||||||
| 			sockaddr2str(&from->address, &address, &port); | 			sockaddr2str(&from->address, &address, &port); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue