From 21d22e747d7e4c5af1d10ae8514c877b362063b2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 23 Mar 2016 23:43:52 -0700 Subject: [PATCH] Make dhcp.Conn also be an io.Closer. --- dhcp/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dhcp/server.go b/dhcp/server.go index 9827fdc..a5ae650 100644 --- a/dhcp/server.go +++ b/dhcp/server.go @@ -14,7 +14,10 @@ package dhcp -import "net" +import ( + "io" + "net" +) // TxType describes how a Packet should be sent on the wire. type TxType int @@ -42,6 +45,7 @@ const ( // // Multiple goroutines may invoke methods on a Conn simultaneously. type Conn interface { + io.Closer // RecvDHCP reads a Packet from the connection. It returns the // packet and the interface it was received on, which may be nil // if interface information cannot be obtained.