Skip to content

Commit

Permalink
Implement a quick fix to network_monitor.py
Browse files Browse the repository at this point in the history
Thanks to Julio <[email protected]> for letting me know about this!
  • Loading branch information
Fitblip committed Jun 19, 2014
1 parent a78d202 commit afcd647
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions network_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ def create_usage():
[-l|--log_level LEVEL] log level (default 1), increase for more verbosity
[--port PORT] TCP port to bind this agent to
Network Device List:"""
Network Device List:
"""
for index, pcapy_device in enumerate(pcapy.findalldevs()):
IFS.append(device)
IFS.append(pcapy_device)
# if we are on windows, try and resolve the device UUID into an IP address.
if sys.platform.startswith("win"):
import _winreg
Expand Down Expand Up @@ -220,9 +221,9 @@ def set_log_path (self, new_log_path):
########################################################################################################################

if __name__ == "__main__":
IFS = []
usage_message = create_usage()
rpc_port = 26001
IFS = []
opts = None

# parse command line options.
Expand Down

0 comments on commit afcd647

Please sign in to comment.