mirror of https://github.com/XTLS/Xray-core
				
				
				
			DNS log: Optimize IP address display (#4630)
							parent
							
								
									800b33c626
								
							
						
					
					
						commit
						922ae98a4a
					
				| 
						 | 
				
			
			@ -161,7 +161,7 @@ func NewClient(
 | 
			
		|||
			case *net.IPOrDomain_Domain:
 | 
			
		||||
				errors.LogInfo(ctx, "DNS: client ", ns.Address.Address.GetDomain(), " uses clientIP ", clientIP.String())
 | 
			
		||||
			case *net.IPOrDomain_Ip:
 | 
			
		||||
				errors.LogInfo(ctx, "DNS: client ", ns.Address.Address.GetIp(), " uses clientIP ", clientIP.String())
 | 
			
		||||
				errors.LogInfo(ctx, "DNS: client ", net.IP(ns.Address.Address.GetIp()), " uses clientIP ", clientIP.String())
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue