Skip to content

Commit

Permalink
Merge pull request #531 from LauJosefsen/LauJosefsen/remove-arbitrary…
Browse files Browse the repository at this point in the history
…-restriction-for-windows-users-in-monitor-mode

Removed restriction for win32 users not allowed to sniff using monito…
  • Loading branch information
KimiNewt committed Jun 7, 2022
2 parents 74a024c + a01cfb8 commit b9a3902
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pyshark/capture/live_capture.py
Expand Up @@ -46,9 +46,6 @@ def __init__(self, interface=None, bpf_filter=None, display_filter=None, only_su
self.bpf_filter = bpf_filter
self.monitor_mode = monitor_mode

if sys.platform == "win32" and monitor_mode:
raise WindowsError("Monitor mode is not supported by the Windows platform")

if interface is None:
self.interfaces = get_tshark_interfaces(tshark_path)
elif isinstance(interface, str):
Expand Down

0 comments on commit b9a3902

Please sign in to comment.