summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/server4
diff options
context:
space:
mode:
authorDennis Marttinen <twelho@welho.tech>2022-10-01 14:15:01 +0300
committerDennis Marttinen <twelho@welho.tech>2022-10-01 14:31:21 +0300
commite6997bf8b3fab1a1d480f7bd564988164a3b6bd3 (patch)
tree3cedc99231cbc29465eab72b0c9a1482c4060ffd /dhcpv4/server4
parent043f1726f02e2908b959423a0b95a9affdc08b73 (diff)
dhcpv4: return a new lease from Renew()
Signed-off-by: Dennis Marttinen <twelho@welho.tech>
Diffstat (limited to 'dhcpv4/server4')
-rw-r--r--dhcpv4/server4/server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/server4/server_test.go b/dhcpv4/server4/server_test.go
index 7be868c..b0336db 100644
--- a/dhcpv4/server4/server_test.go
+++ b/dhcpv4/server4/server_test.go
@@ -116,7 +116,7 @@ func TestServer(t *testing.T) {
require.Equal(t, ifaces[0].HardwareAddr, p.ClientHWAddr)
}
- err = c.Renew(context.Background(), lease, modifiers...)
+ lease, err = c.Renew(context.Background(), lease, modifiers...)
require.NoError(t, err)
require.NotNil(t, lease.Offer, lease.ACK)
for _, p := range []*dhcpv4.DHCPv4{lease.Offer, lease.ACK} {