Merge pull request #255 from saravanakumar-periyasamy/master
some DHCP servers expect to request for explicit router options
This commit is contained in:
commit
c74e0e9967
@ -130,6 +130,7 @@ func (l *DHCPLease) acquire() error {
|
|||||||
|
|
||||||
opts := make(dhcp4.Options)
|
opts := make(dhcp4.Options)
|
||||||
opts[dhcp4.OptionClientIdentifier] = []byte(l.clientID)
|
opts[dhcp4.OptionClientIdentifier] = []byte(l.clientID)
|
||||||
|
opts[dhcp4.OptionParameterRequestList] = []byte{byte(dhcp4.OptionRouter)}
|
||||||
|
|
||||||
pkt, err := backoffRetry(func() (*dhcp4.Packet, error) {
|
pkt, err := backoffRetry(func() (*dhcp4.Packet, error) {
|
||||||
ok, ack, err := DhcpRequest(c, opts)
|
ok, ack, err := DhcpRequest(c, opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user