Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. try:
  2. kafka_ip_address = socket.gethostbyname(KAFKA_IP)
  3. disp_filter = f"(ip.src=={MY_IP} or ip.dst=={MY_IP}) and (ip.src!={kafka_ip_address}) and (ip.dst!={kafka_ip_address})"
  4. except Exception as e:
  5. disp_filter = f"(ip.src=={MY_IP} or ip.dst=={MY_IP})"
  6. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement