mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Remove sourceSubnet from router
This commit is contained in:
		
							parent
							
								
									e3d4aed44a
								
							
						
					
					
						commit
						19e6aaf9f5
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -125,11 +125,9 @@ func (r *router) sendPacket(bs []byte) {
 | 
			
		|||
		panic("Tried to send a packet shorter than a header...")
 | 
			
		||||
	}
 | 
			
		||||
	var sourceAddr address
 | 
			
		||||
	var sourceSubnet subnet
 | 
			
		||||
	var dest address
 | 
			
		||||
	var snet subnet
 | 
			
		||||
	copy(sourceAddr[:], bs[8:])
 | 
			
		||||
	copy(sourceSubnet[:], bs[8:])
 | 
			
		||||
	if !r.cryptokey.isValidSource(sourceAddr) {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue