diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2018-08-03 11:30:07 +0200 |
---|---|---|
committer | Pablo Mazzini <pmazzini@gmail.com> | 2018-08-10 14:43:25 +0200 |
commit | ba823f457ef09139f01168013de529ede7caf76b (patch) | |
tree | f0f38477eae53eaa60208babf3e3e6bd70cc98d5 | |
parent | 782ff7524ce2fce9b098ad72c020a489735557a1 (diff) |
NewRequestFromOffer: update client
-rw-r--r-- | dhcpv4/client.go | 2 |
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) |