Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: TomyLobo <[email protected]>
  • Loading branch information
TomyLobo authored Jan 8, 2025
1 parent e973e93 commit 5fc8070
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,9 @@ func (d *DHCP4) requestRenew(ctx context.Context, hostname network.HostnameStatu
d.lease, err = client.RequestFromOffer(ctx, d.lease.Offer, mods...)
case len(d.AddressSpecs()) >= 1:
d.logger.Debug("DHCP REQUEST WITH PREVIOUS IP", zap.String("link", d.linkName))

var firstIPAddress net.IP = d.AddressSpecs()[0].Address.Addr().AsSlice()

d.lease, err = client.Request(ctx, dhcpv4.PrependModifiers(mods,
dhcpv4.WithOption(dhcpv4.OptRequestedIPAddress(firstIPAddress)),
)...)
Expand Down

0 comments on commit 5fc8070

Please sign in to comment.