Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions modules/test/tls/python/src/tls_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,8 +695,10 @@ def get_tls_client_connection_ips(self, client_mac, capture_files):

tls_dst_ips = set() # Store unique destination IPs
for packet in packets:
dst_ip = ipaddress.ip_address(packet['_source']['layers']['ip.dst'][0])
tls_dst_ips.add(str(dst_ip))
# Extract the destination IP address
if 'ip.dst' in packet['_source']['layers']:
dst_ip = ipaddress.ip_address(packet['_source']['layers']['ip.dst'][0])
tls_dst_ips.add(str(dst_ip))
return tls_dst_ips

# Check if the device has made any outbound connections that use any
Expand Down