Skip to content

Commit

Permalink
dhcpd: fix ip version
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Sep 13, 2021
1 parent 07108a9 commit 1789171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/dhcpd/options_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ func prepareOptions(conf V4ServerConf) (opts dhcpv4.Options) {
dhcpv4.OptionPerformRouterDiscovery.Code(): []byte{1},
// The all-routers address is preferred wherever possible, see
// https://datatracker.ietf.org/doc/html/rfc1256#section-5.1.
dhcpv4.OptionRouterSolicitationAddress.Code(): net.IPv4allrouter,
dhcpv4.OptionBroadcastAddress.Code(): net.IPv4bcast,
dhcpv4.OptionRouterSolicitationAddress.Code(): net.IPv4allrouter.To4(),
dhcpv4.OptionBroadcastAddress.Code(): net.IPv4bcast.To4(),

// Link-Layer Per Interface

Expand Down

0 comments on commit 1789171

Please sign in to comment.