From 307e95b7b0eb80b0c2a906fa26567d7221d3e324 Mon Sep 17 00:00:00 2001 From: Amit Limaye Date: Tue, 12 Mar 2024 11:08:32 -0700 Subject: [PATCH] Add Server Identifier when sending tftp server boot request --- pkg/dhcpd/dhcphandlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/dhcpd/dhcphandlers.go b/pkg/dhcpd/dhcphandlers.go index 5de87b07..a915edbe 100644 --- a/pkg/dhcpd/dhcphandlers.go +++ b/pkg/dhcpd/dhcphandlers.go @@ -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))) } } }