mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix panic in tcp.init for incorrectly formatted listen addresses
				
					
				
			This commit is contained in:
		
							parent
							
								
									486ffebedd
								
							
						
					
					
						commit
						4f2abece81
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -109,6 +109,7 @@ func (t *tcp) init(l *links, listeners []ListenAddress) error {
 | 
			
		|||
		u, err := url.Parse(string(listenaddr))
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			t.links.core.log.Errorln("Failed to parse listener: listener", listenaddr, "is not correctly formatted, ignoring")
 | 
			
		||||
			continue
 | 
			
		||||
		}
 | 
			
		||||
		if _, err := t.listenURL(u, ""); err != nil {
 | 
			
		||||
			return err
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue