mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
Merge pull request #24 from onura/pr/macos_mac_parse_issue
fix: Cannot parse arp table since MAC addresses are not padded with 0…
This commit is contained in:
commit
3cc5faa297
1 changed files with 1 additions and 1 deletions
|
@ -2,5 +2,5 @@ package net
|
|||
|
||||
import "regexp"
|
||||
|
||||
var ArpTableParser = regexp.MustCompile("^[^\\d\\.]+([\\d\\.]+).+\\s+([a-f0-9:]{17})\\s+on\\s+([^\\s]+)\\s+.+$")
|
||||
var ArpTableParser = regexp.MustCompile("^[^\\d\\.]+([\\d\\.]+).+\\s+([a-f0-9:]{11,17})\\s+on\\s+([^\\s]+)\\s+.+$")
|
||||
var ArpTableTokens = 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue