mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-15 19:31:45 +03:00
7f29d4e546
Merge in DNS/adguard-home from 2276-fix-lint-2 to master Updates #2276. Squashed commit of the following: commit 24760b9586bb31be134ef9518dbece485560b1a0 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 7 14:39:50 2020 +0300 all: fix lint and naming issues vol. 2
24 lines
1.1 KiB
Go
24 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 }
|