Skip to content

Commit

Permalink
Merge pull request kubevirt#801 from vladikr/bug_789
Browse files Browse the repository at this point in the history
Fix DHCP server options to allow Windows accept offered IP
  • Loading branch information
rmohr authored Mar 9, 2018
2 parents 9a9fcbc + f135f19 commit ee26cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/virt-launcher/virtwrap/network/dhcp/dhcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ func SingleClientDHCPServer(
handler := &DHCPHandler{
clientIP: clientIP,
clientMAC: clientMAC,
serverIP: serverIP,
serverIP: serverIP.To4(),
leaseDuration: infiniteLease,
options: dhcp.Options{
dhcp.OptionSubnetMask: []byte(clientMask),
dhcp.OptionRouter: []byte(routerIP),
dhcp.OptionDomainNameServer: []byte(dnsIP),
dhcp.OptionDomainNameServer: []byte(dnsIP.To4()),
},
}

Expand Down

0 comments on commit ee26cda

Please sign in to comment.