Skip to content

Commit

Permalink
dhcpsvc: add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jul 2, 2024
1 parent ae1713e commit 4779f94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/dhcpsvc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package dhcpsvc
import (
"context"
"fmt"
"log/slog"
"net"
"net/netip"
"slices"
Expand All @@ -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
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 4779f94

Please sign in to comment.