mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-22 14:54:25 +03:00
8bb1aad739
Merge in DNS/adguard-home from 4923-gopacket-dhcp-vol.4 to master
Updates #4923.
Squashed commit of the following:
commit 4b87258c70ac98b2abb1ac95f7e916e244b3cd08
Merge: 61458864f 9b91a8740
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date: Thu Nov 16 14:05:34 2023 +0300
Merge branch 'master' into 4923-gopacket-dhcp-vol.4
commit 61458864f3df7a027e65060a5f0fb516cc7911a7
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date: Wed Nov 15 18:48:40 2023 +0300
all: imp code
commit 506a0ab81e76beebb900f86580577563b471e4e2
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date: Tue Nov 14 15:59:56 2023 +0300
all: cleanup moving lease
commit 8d218b732662ac4308ed09d28c1bf9f65906d47c
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date: Mon Nov 13 18:13:39 2023 +0300
all: rm old leases type
34 lines
1.5 KiB
Go
34 lines
1.5 KiB
Go
//go:build windows
|
|
|
|
package dhcpd
|
|
|
|
// 'u-root/u-root' package, a dependency of 'insomniacslk/dhcp' package, doesn't build on Windows
|
|
|
|
import (
|
|
"net"
|
|
"net/netip"
|
|
|
|
"github.com/AdguardTeam/AdGuardHome/internal/dhcpsvc"
|
|
)
|
|
|
|
type winServer struct{}
|
|
|
|
// type check
|
|
var _ DHCPServer = winServer{}
|
|
|
|
func (winServer) ResetLeases(_ []*dhcpsvc.Lease) (err error) { return nil }
|
|
func (winServer) GetLeases(_ GetLeasesFlags) (leases []*dhcpsvc.Lease) { return nil }
|
|
func (winServer) getLeasesRef() []*dhcpsvc.Lease { return nil }
|
|
func (winServer) AddStaticLease(_ *dhcpsvc.Lease) (err error) { return nil }
|
|
func (winServer) RemoveStaticLease(_ *dhcpsvc.Lease) (err error) { return nil }
|
|
func (winServer) UpdateStaticLease(_ *dhcpsvc.Lease) (err error) { return nil }
|
|
func (winServer) FindMACbyIP(_ netip.Addr) (mac net.HardwareAddr) { return nil }
|
|
func (winServer) WriteDiskConfig4(_ *V4ServerConf) {}
|
|
func (winServer) WriteDiskConfig6(_ *V6ServerConf) {}
|
|
func (winServer) Start() (err error) { return nil }
|
|
func (winServer) Stop() (err error) { return nil }
|
|
func (winServer) HostByIP(_ netip.Addr) (host string) { return "" }
|
|
func (winServer) IPByHost(_ string) (ip netip.Addr) { return netip.Addr{} }
|
|
|
|
func v4Create(_ *V4ServerConf) (s DHCPServer, err error) { return winServer{}, nil }
|
|
func v6Create(_ V6ServerConf) (s DHCPServer, err error) { return winServer{}, nil }
|