mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
balls
This commit is contained in:
parent
b828a175e1
commit
6d7e0fa686
1 changed files with 1 additions and 2 deletions
|
@ -359,8 +359,7 @@ func (s *DHCP6Spoofer) dhcpReply(toType string, pkt gopacket.Packet, req dhcp6.P
|
|||
|
||||
func (s *DHCP6Spoofer) duidMatches(dhcp dhcp6.Packet) bool {
|
||||
if raw, found := dhcp.Options[dhcp6.OptionServerID]; found == true && len(raw) >= 1 {
|
||||
rawServerID := raw[0]
|
||||
if bytes.Compare(rawServerID, s.DUIDRaw) == 0 {
|
||||
if bytes.Compare(raw[0], s.DUIDRaw) == 0 {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue