mirror of
https://github.com/danderson/netboot.git
synced 2025-08-10 00:27:12 +02:00
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:
parent
c9ec51e475
commit
879aab828e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user