mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Set SOCKS peer addr to resolved address
This commit is contained in:
		
							parent
							
								
									8b180e941a
								
							
						
					
					
						commit
						13a2d99fdc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -292,7 +292,7 @@ func (t *tcp) call(saddr string, options tcpOptions, sintf string) {
 | 
			
		|||
				return
 | 
			
		||||
			}
 | 
			
		||||
			t.waitgroup.Add(1)
 | 
			
		||||
			options.socksPeerAddr = saddr
 | 
			
		||||
			options.socksPeerAddr = conn.RemoteAddr().String()
 | 
			
		||||
			t.handler(conn, false, options)
 | 
			
		||||
		} else {
 | 
			
		||||
			dst, err := net.ResolveTCPAddr("tcp", saddr)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue