Fixing MAC form and index

This commit is contained in:
2014-01-24 04:27:21 -07:00
parent aa29f30f30
commit c6bb164f73
2 changed files with 11 additions and 3 deletions

View File

@@ -224,7 +224,7 @@ end
def arp_lookup
@ip = request.env['REMOTE_ADDR']
@arp = %x(/usr/sbin/arp -a | grep #{@ip})
@arp = /([0-9A-F]{2}[:-]){5}([0-9A-F]{2})/i.match(%x(arp -a | grep #{@ip}))
end
def scan