36c7735b85
Merge in DNS/adguard-home from 2355-dhcpcheck-ipv6 to master Updates #2335. Squashed commit of the following: commit 5ce1cc7bc244ba5dd4a065d47dec8884fa3d45e7 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Nov 25 14:03:24 2020 +0300 dhcpd: fix loop exit condition commit 32b4b946bfa30159326dc295fa1a2607b78172af Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Nov 25 13:26:50 2020 +0300 dhcpd: fix interface ipv6 check
23 lines
1.1 KiB
Go
23 lines
1.1 KiB
Go
package dhcpd
|
|
|
|
// 'u-root/u-root' package, a dependency of 'insomniacslk/dhcp' package, doesn't build on Windows
|
|
|
|
import "net"
|
|
|
|
type winServer struct {
|
|
}
|
|
|
|
func (s *winServer) ResetLeases(leases []*Lease) {}
|
|
func (s *winServer) GetLeases(flags int) []Lease { return nil }
|
|
func (s *winServer) GetLeasesRef() []*Lease { return nil }
|
|
func (s *winServer) AddStaticLease(lease Lease) error { return nil }
|
|
func (s *winServer) RemoveStaticLease(l Lease) error { return nil }
|
|
func (s *winServer) FindMACbyIP(ip net.IP) net.HardwareAddr { return nil }
|
|
func (s *winServer) WriteDiskConfig4(c *V4ServerConf) {}
|
|
func (s *winServer) WriteDiskConfig6(c *V6ServerConf) {}
|
|
func (s *winServer) Start() error { return nil }
|
|
func (s *winServer) Stop() {}
|
|
func (s *winServer) Reset() {}
|
|
func v4Create(conf V4ServerConf) (DHCPServer, error) { return &winServer{}, nil }
|
|
func v6Create(conf V6ServerConf) (DHCPServer, error) { return &winServer{}, nil }
|