Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

sniffer: correct handling of byte strings #81

Merged
merged 2 commits into from
Sep 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sniffer/tools/sniffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
def configure_interface(port, channel):
line = ""
iface = 0
port.write(b'ifconfig\n')
port.write('ifconfig\n'.encode())
while True:
line = port.readline()
if line == '':
if line == b'':
print("Application has no network interface defined",
file=sys.stderr)
sys.exit(2)
Expand Down