Skip to content

Commit

Permalink
Remove unused lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeymatov authored and Frostman committed Apr 24, 2024
1 parent 51ab92e commit ffd8701
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/dhcpd/dhcphandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,8 @@ func addPxeInfo(req, resp *dhcpv4.DHCPv4, subnet *ManagedSubnet) {
switch u.Scheme {
case "http", "https", "ftp":
vendorClassIdentifer := req.Options.Get(dhcpv4.OptionClassIdentifier)
//resp.Options.Update(dhcpv4.OptBootFileName(u.String()))
resp.BootFileName = u.String()
resp.Options.Update(dhcpv4.OptClassIdentifier(string(vendorClassIdentifer)))
//resp.Options.Del(dhcpv4.
default:
resp.Options.Update(dhcpv4.OptBootFileName(strings.TrimPrefix(u.Path, "/")))
resp.Options.Update(dhcpv4.OptServerIdentifier(net.ParseIP(u.Host)))
Expand Down

0 comments on commit ffd8701

Please sign in to comment.