dhcp4: correct the default address for linuxConn.

net.ListenPacket wants an actual IP address, whereas ":67" gives you a nil.
This commit is contained in:
David Anderson 2016-07-17 01:59:10 -07:00
parent c9ec51e475
commit 879aab828e

View File

@ -42,7 +42,7 @@ func init() {
func newLinuxConn(addr string) (conn, error) {
if addr == "" {
addr = ":67"
addr = "0.0.0.0:67"
}
udpAddr, err := net.ResolveUDPAddr("udp4", addr)
if err != nil {