Skip to content

Commit

Permalink
legacy file error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas11789 committed May 7, 2019
1 parent 171d88d commit 9c2d77f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Module/legacy/pcapReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ def read_pcap_and_fill_db(self):

# Sniff Packets with Filter
def packet_filter(self, ipaddress="", protocol="", port=""):
if ipaddress is not "":
if ipaddress != "":
filter = "host "+ipaddress
if protocol is not "":
if protocol != "":
filter = filter+" and "+protocol
if port is not "":
if port != "":
filter = filter+" and "+"port "+port
return sniff(offline=self.file, filter=filter)

Expand Down

0 comments on commit 9c2d77f

Please sign in to comment.