login-validator: add IP

This commit is contained in:
nemunaire 2019-02-28 02:27:33 +01:00
commit 0b05e8539d
4 changed files with 31 additions and 13 deletions

View file

@ -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]
}
}