mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-10-31 02:27:49 +00:00 
			
		
		
		
	[WIFI-2932] Change client IP event to InetAddress
This commit is contained in:
		 Norm Traxler
					Norm Traxler
				
			
				
					committed by
					
						 Mike Hansen
						Mike Hansen
					
				
			
			
				
	
			
			
			 Mike Hansen
						Mike Hansen
					
				
			
						parent
						
							4f462ecf70
						
					
				
				
					commit
					716e5d8129
				
			| @@ -476,8 +476,13 @@ public class RealtimeEventPublisher { | ||||
|         clientEvent.setSessionId(clientIpEvent.getSessionId()); | ||||
|         clientEvent.setClientMacAddress(MacAddress.valueOf(clientIpEvent.getStaMac())); | ||||
|         if (clientIpEvent.hasIpAddr()) { | ||||
|             clientEvent.setIpAddr(clientIpEvent.getIpAddr().toByteArray()); | ||||
|             try { | ||||
|                 clientEvent.setIpAddr(InetAddress.getByAddress(clientIpEvent.getIpAddr().toByteArray())); | ||||
|             } catch (UnknownHostException e1) { | ||||
|                 LOG.error("Invalid Client IP Address for equipmentId {}, clientIpEvent {}", equipmentId, clientIpEvent); | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         clientEvent.setEventTimestamp(clientIpEvent.getTimestampMs()); | ||||
|         clientEvent.setCustomerId(customerId); | ||||
|         clientEvent.setEquipmentId(equipmentId); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user