Skip to content

Commit

Permalink
Skip 'tun' devices during scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaldvogel committed May 15, 2021
1 parent 57250b5 commit e034473
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion neighbourhood.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ def main(interface_to_scan=None):
continue

# skip docker interface
if interface != interface_to_scan and interface.startswith('docker') or interface.startswith('br-'):
if interface != interface_to_scan \
and (interface.startswith('docker')
or interface.startswith('br-')
or interface.startswith('tun')):
logger.warning("Skipping interface '%s'" % interface)
continue

Expand Down

0 comments on commit e034473

Please sign in to comment.