login-validator: add IP
This commit is contained in:
parent
081b22a64a
commit
0b05e8539d
4 changed files with 31 additions and 13 deletions
|
|
@ -52,7 +52,7 @@ func ARPAnalyze() (ents []ARPEntry, err error) {
|
|||
|
||||
func ARPContainsIP(ents []ARPEntry, ip net.IP) *ARPEntry {
|
||||
for i, e := range ents {
|
||||
if e.IP.Equal(ip) && e.Flags == 2 {
|
||||
if e.IP.Equal(ip) && (e.Flags == 2 || e.Flags == 6) {
|
||||
return &ents[i]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue