Skip to content

Commit

Permalink
Add Server Identifier when sending tftp server boot request
Browse files Browse the repository at this point in the history
  • Loading branch information
amitlimaye authored and Frostman committed Mar 12, 2024
1 parent 7115439 commit 307e95b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/dhcpd/dhcphandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ func addPxeInfo(req, resp *dhcpv4.DHCPv4, subnet *ManagedSubnet) {
resp.Options.Update(dhcpv4.OptBootFileName(u.String()))
default:
resp.Options.Update(dhcpv4.OptBootFileName(strings.TrimPrefix(u.Path, "/")))
resp.Options.Update(dhcpv4.OptServerIdentifier(net.ParseIP(u.Host)))
}
}
}

0 comments on commit 307e95b

Please sign in to comment.