mirror of
https://github.com/rancher/plugins.git
synced 2025-07-08 12:45:19 +00:00
some DHCP servers expect to request for explicit router options
This commit is contained in:
parent
a686cc4bd8
commit
f891fd9e9a
@ -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…
Reference in New Issue
Block a user