mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	Only replace call name with interface prefix when interface is set
This commit is contained in:
		
							parent
							
								
									3f8a4ab17d
								
							
						
					
					
						commit
						387ae9ea6c
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -112,7 +112,10 @@ func (iface *tcpInterface) listener() {
 | 
			
		|||
// This all happens in a separate goroutine that it spawns.
 | 
			
		||||
func (iface *tcpInterface) call(saddr string, socksaddr *string, sintf string) {
 | 
			
		||||
	go func() {
 | 
			
		||||
		callname := fmt.Sprintf("%s/%s", saddr, sintf)
 | 
			
		||||
		callname := saddr
 | 
			
		||||
		if sintf != "" {
 | 
			
		||||
			callname = fmt.Sprintf("%s/%s", saddr, sintf)
 | 
			
		||||
		}
 | 
			
		||||
		quit := false
 | 
			
		||||
		iface.mutex.Lock()
 | 
			
		||||
		if _, isIn := iface.calls[callname]; isIn {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue