Skip to content

Commit

Permalink
Fix TFTP plugin
Browse files Browse the repository at this point in the history
Remove trailing slash from *path*, not from host
  • Loading branch information
damyan committed Apr 19, 2024
1 parent b289389 commit d7b7706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/pxeboot/pxeboot.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ func setup4(args ...string) (handler.Handler4, error) {
return nil, err
}

opt1 := dhcpv4.OptBootFileName(tftp.Path)
opt1 := dhcpv4.OptBootFileName(tftp.Path[1:])
tftpBootFileOption = &opt1

opt2 := dhcpv4.OptTFTPServerName(tftp.Host[1:])
opt2 := dhcpv4.OptTFTPServerName(tftp.Host)
tftpServerNameOption = &opt2

opt3 := dhcpv4.OptBootFileName(ipxe.String())
Expand Down

0 comments on commit d7b7706

Please sign in to comment.