|  |  | @ -62,6 +62,8 @@ public class IpUtils { | 
			
		
	
		
			
				
					|  |  |  | 			if (StringUtils.isEmpty(ip) || IP_UNKNOWN.equalsIgnoreCase(ip)) { | 
			
		
	
		
			
				
					|  |  |  | 				ip = request.getRemoteAddr(); | 
			
		
	
		
			
				
					|  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 			logger.info("getIpAddr origin ip:{}",ip); | 
			
		
	
		
			
				
					|  |  |  | 			//对于通过多个代理的情况,第一个IP为客户端真实IP,多个IP按照','分割
 | 
			
		
	
		
			
				
					|  |  |  | 			if (ip != null) { //"***.***.***.***".length() = 15
 | 
			
		
	
		
			
				
					|  |  |  | 				if (ip.indexOf(StrConstant.COMMA) > 0) { | 
			
		
	
	
		
			
				
					|  |  | @ -72,7 +74,6 @@ public class IpUtils { | 
			
		
	
		
			
				
					|  |  |  | 		} catch (Exception e) { | 
			
		
	
		
			
				
					|  |  |  | 			logger.error("IpUtils getIpAddr ERROR ", e); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 		return ip; | 
			
		
	
		
			
				
					|  |  |  | 	} | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 |