mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	panic if tun.write or tun.read returns an error and was launched from debug.go, since there's no way to recover in these scenarios
This commit is contained in:
		
							parent
							
								
									56fd7bd4d4
								
							
						
					
					
						commit
						0460fdd301
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -231,9 +231,9 @@ func (c *Core) DEBUG_startTunWithMTU(ifname string, iftapmode bool, mtu int) {
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			panic(err)
 | 
								panic(err)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		go c.tun.read()
 | 
							go func() { panic(c.tun.read()) }()
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	go c.tun.write()
 | 
						go func() { panic(c.tun.write()) }()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (c *Core) DEBUG_stopTun() {
 | 
					func (c *Core) DEBUG_stopTun() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue