mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix reporting name for TCP
This commit is contained in:
		
							parent
							
								
									0a1a155e66
								
							
						
					
					
						commit
						63c4cb5c21
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -82,7 +82,7 @@ func (l *linkTCP) listen(url *url.URL, sintf string) (*Listener, error) {
 | 
			
		|||
				break
 | 
			
		||||
			}
 | 
			
		||||
			addr := conn.RemoteAddr().(*net.TCPAddr)
 | 
			
		||||
			name := fmt.Sprintf("tls://%s", addr)
 | 
			
		||||
			name := fmt.Sprintf("tcp://%s", addr)
 | 
			
		||||
			info := linkInfoFor("tcp", sintf, strings.SplitN(addr.IP.String(), "%", 2)[0])
 | 
			
		||||
			if err = l.handler(name, info, conn, linkOptions{}, true); err != nil {
 | 
			
		||||
				l.core.log.Errorln("Failed to create inbound link:", err)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue