mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-21 12:35:33 +03:00
dhcpsvc: add todo
This commit is contained in:
parent
ae1713e5f7
commit
4779f945ba
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,7 @@ package dhcpsvc
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"net"
|
||||
"net/netip"
|
||||
"slices"
|
||||
|
@ -21,6 +22,11 @@ type DHCPServer struct {
|
|||
// information about its clients.
|
||||
enabled *atomic.Bool
|
||||
|
||||
// logger logs common DHCP events.
|
||||
//
|
||||
// TODO(e.burkov): Use.
|
||||
logger *slog.Logger
|
||||
|
||||
// localTLD is the top-level domain name to use for resolving DHCP clients'
|
||||
// hostnames.
|
||||
localTLD string
|
||||
|
@ -92,6 +98,7 @@ func New(ctx context.Context, conf *Config) (srv *DHCPServer, err error) {
|
|||
|
||||
srv = &DHCPServer{
|
||||
enabled: enabled,
|
||||
logger: l,
|
||||
localTLD: conf.LocalDomainName,
|
||||
leasesMu: &sync.RWMutex{},
|
||||
leases: newLeaseIndex(),
|
||||
|
|
Loading…
Reference in a new issue