mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-17 02:48:28 -07:00
9f5a015f42
Updates #2419. Squashed commit of the following: commit e57e6ce56c59d4ef42b1716247fe48a86404179e Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Tue Jun 15 19:37:15 2021 +0300 all: imp build tags
25 lines
1.1 KiB
Go
25 lines
1.1 KiB
Go
//go:build windows
|
|
// +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 }
|