mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-22 14:54:25 +03:00
eb9526cc92
Closes #2838. Updates #2834. Squashed commit of the following: commit 608dce28cf6bcbaf5a7f0bf499889ec25777e121 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Mar 18 16:49:20 2021 +0300 dhcpd: fix windows; imp code commit 5e56eebf6ab85ca5fd0a0278c312674d921a3077 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Mar 17 18:47:54 2021 +0300 dhcpd: imp static lease validation
23 lines
1.1 KiB
Go
23 lines
1.1 KiB
Go
// +build windows
|
|
|
|
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 }
|