mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	Fail to TCP when parsing AdminListen
This commit is contained in:
		
							parent
							
								
									70e755fdd3
								
							
						
					
					
						commit
						d59bdfeb99
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -245,7 +245,8 @@ func (a *admin) listen() {
 | 
			
		|||
		case "tcp":
 | 
			
		||||
			a.listener, err = net.Listen("tcp", u.Host)
 | 
			
		||||
		default:
 | 
			
		||||
			err = errors.New(fmt.Sprint("protocol not supported: ", u.Scheme))
 | 
			
		||||
			// err = errors.New(fmt.Sprint("protocol not supported: ", u.Scheme))
 | 
			
		||||
			a.listener, err = net.Listen("tcp", a.listenaddr)
 | 
			
		||||
		}
 | 
			
		||||
	} else {
 | 
			
		||||
		a.listener, err = net.Listen("tcp", a.listenaddr)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue