Skip to content

Commit

Permalink
Merge pull request #8 from OpenCHAMI/synackd/bootloop-root-path
Browse files Browse the repository at this point in the history
fix(bootloop): add DHCP option 17 setting
  • Loading branch information
synackd authored Nov 25, 2024
2 parents 43f555d + d4df0f7 commit 4752755
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bootloop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ func (p *PluginState) Handler4(req, resp *dhcpv4.DHCPv4) (*dhcpv4.DHCPv4, bool)

debug.DebugRequest(log, req)

// Set root path to this server's IP
resp.Options.Update(dhcpv4.OptRootPath(resp.ServerIPAddr.String()))

record, ok := p.Recordsv4[req.ClientHWAddr.String()]
hostname := req.HostName()
cinfo := req.Options.Get(dhcpv4.OptionUserClassInformation)
Expand Down

0 comments on commit 4752755

Please sign in to comment.