mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 14:03:17 -07:00
revert !
This commit is contained in:
parent
3761f1e698
commit
2fe8999b2d
54 changed files with 473 additions and 542 deletions
|
@ -38,11 +38,11 @@ func DHCP6For(what dhcp6.MessageType, to dhcp6.Packet, duid []byte) (err error,
|
|||
}
|
||||
|
||||
var rawCID []byte
|
||||
raw, found := to.Options[dhcp6.OptionClientID]
|
||||
if !found || len(raw) < 1 {
|
||||
if raw, found := to.Options[dhcp6.OptionClientID]; !found || len(raw) < 1 {
|
||||
return ErrNoCID, p
|
||||
} else {
|
||||
rawCID = raw[0]
|
||||
}
|
||||
rawCID = raw[0]
|
||||
|
||||
p.Options.AddRaw(dhcp6.OptionClientID, rawCID)
|
||||
p.Options.AddRaw(dhcp6.OptionServerID, duid)
|
||||
|
|
|
@ -233,8 +233,9 @@ func (q *Queue) Send(raw []byte) error {
|
|||
if err := q.handle.WritePacketData(raw); err != nil {
|
||||
q.TrackError()
|
||||
return err
|
||||
} else {
|
||||
q.TrackSent(uint64(len(raw)))
|
||||
}
|
||||
q.TrackSent(uint64(len(raw)))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue