mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
Revert "Minor refactors using golint"
This commit is contained in:
parent
9196be7a8b
commit
5328ced392
21 changed files with 101 additions and 70 deletions
|
@ -40,8 +40,9 @@ func DHCP6For(what dhcp6.MessageType, to dhcp6.Packet, duid []byte) (err error,
|
|||
var rawCID []byte
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue