Commit e6c54969 authored by Elena Grandi's avatar Elena Grandi

Improve parsing of the output of arp

parent ecdeb9d3
......@@ -355,7 +355,7 @@ class MachineStore:
)
out = await proc.communicate()
if ip in out[0].decode().split('\n')[1]:
return out[0].decode().split('\n')[1].split()[2]
return out[0].decode().split('\n')[1][33:50]
return None
async def ip_to_name(self, ip):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment