ahlashkari / DoHLyzer

DoHlyzer is a DNS over HTTPS (DoH) traffic flow generator and analyzer for anomaly detection and characterization.
58 stars 33 forks source link

Update packet_flow_key.py #3

Open QianruZhou333 opened 4 years ago

QianruZhou333 commented 4 years ago

there is an issue here in the import, the original from meter.features.context import packet_direction would cause error: AttributeError: module 'meter.features.context.packet_direction' has no attribute 'FORWARD'

the fixed import from meter.features.context.packet_direction import PacketDirection works fine for me.

guoqincode commented 3 years ago

DoHLyzer/meter/features/context/packet_flow_key.py

Line33 should be if direction == packet_direction.PacketDirection.FORWARD: