- dhcp: fix build on macos #704
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dhcpd
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"net"
|
||||
|
||||
"golang.org/x/net/ipv4"
|
||||
@@ -8,5 +9,5 @@ import (
|
||||
|
||||
// Create a socket for receiving broadcast packets
|
||||
func newBroadcastPacketConn(bindAddr net.IP, port int, ifname string) (*ipv4.PacketConn, error) {
|
||||
return nil, nil
|
||||
return nil, errors.New("newBroadcastPacketConn(): not supported on Windows")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user