mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	it helps to check that messages decoded correctly
This commit is contained in:
		
							parent
							
								
									bcfeb22915
								
							
						
					
					
						commit
						ec1c173ca5
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -287,7 +287,9 @@ func (p *peer) sendSwitchMsg() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (p *peer) handleSwitchMsg(packet []byte) {
 | 
					func (p *peer) handleSwitchMsg(packet []byte) {
 | 
				
			||||||
	var msg switchMsg
 | 
						var msg switchMsg
 | 
				
			||||||
	msg.decode(packet)
 | 
						if !msg.decode(packet) {
 | 
				
			||||||
 | 
							return
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	//p.core.log.Println("Decoded msg:", msg, "; bytes:", packet)
 | 
						//p.core.log.Println("Decoded msg:", msg, "; bytes:", packet)
 | 
				
			||||||
	if len(msg.Hops) < 1 {
 | 
						if len(msg.Hops) < 1 {
 | 
				
			||||||
		panic("FIXME testing")
 | 
							panic("FIXME testing")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue