some DHCP servers expect to request for explicit router options

This commit is contained in:
Saravana Periyasamy 2019-01-28 19:44:53 -06:00
parent a686cc4bd8
commit f891fd9e9a

View File

@ -130,6 +130,7 @@ func (l *DHCPLease) acquire() error {
opts := make(dhcp4.Options)
opts[dhcp4.OptionClientIdentifier] = []byte(l.clientID)
opts[dhcp4.OptionParameterRequestList] = []byte{byte(dhcp4.OptionRouter)}
pkt, err := backoffRetry(func() (*dhcp4.Packet, error) {
ok, ack, err := DhcpRequest(c, opts)