diff options
Diffstat (limited to 'dhcpv4')
-rw-r--r-- | dhcpv4/nclient4/lease.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/dhcpv4/nclient4/lease.go b/dhcpv4/nclient4/lease.go index 9f9d67d..3bd485b 100644 --- a/dhcpv4/nclient4/lease.go +++ b/dhcpv4/nclient4/lease.go @@ -51,8 +51,6 @@ func (c *Client) Release(lease *Lease) error { if err != nil { return err } - timeout := time.Now().Add(3 * time.Second) - c.conn.SetWriteDeadline(timeout) _, err = c.conn.WriteTo(req.ToBytes(), &net.UDPAddr{IP: lease.ACK.Options.Get(dhcpv4.OptionServerIdentifier), Port: 67}) if err == nil { c.logger.PrintMessage("sent message:", req) |