summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4')
-rw-r--r--dhcpv4/client.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/client.go b/dhcpv4/client.go
index 36ff60b..9fd8501 100644
--- a/dhcpv4/client.go
+++ b/dhcpv4/client.go
@@ -148,7 +148,7 @@ func (c *Client) Exchange(ifname string, discover *DHCPv4, modifiers ...Modifier
for _, mod := range modifiers {
discover = mod(discover)
}
- conversation[0] = *discover
+ conversation[0] = discover
// Offer
offer, err := BroadcastSendReceive(sfd, rfd, discover, c.ReadTimeout, c.WriteTimeout, MessageTypeOffer)