Skip to content

Commit ed22245

Browse files
authored
Merge pull request #616 from msimone-human/master
Accepting rpcap:// as a valid interface name
2 parents 293f5ea + fce884e commit ed22245

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pyshark/capture/live_capture.py

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ def _verify_capture_parameters(self):
7474
all_interfaces_names = tshark.get_all_tshark_interfaces_names(self.tshark_path)
7575
all_interfaces_lowercase = [interface.lower() for interface in all_interfaces_names]
7676
for each_interface in self.interfaces:
77+
if each_interface.startswith("rpcap://"):
78+
continue
7779
if each_interface.isnumeric():
7880
continue
7981
if each_interface.lower() not in all_interfaces_lowercase:

0 commit comments

Comments
 (0)