dhcp: don't enforce broadcast flag

Requesting broadcast replies from the DHCP server can be problematic in
filtered environments like some wireless networks. Don't override the
default of using unicast. This matches the behaviour of the external DHCP
clients.

https://github.com/NetworkManager/NetworkManager/pull/93
This commit is contained in:
Richard Schütz 2018-04-12 15:19:20 +02:00 committed by Thomas Haller
parent d0563f0733
commit 9326902cf1

View file

@ -630,12 +630,6 @@ ip4_start (NMDhcpClient *client, const char *dhcp_anycast_addr, const char *last
goto error;
}
r = sd_dhcp_client_set_request_broadcast (priv->client4, true);
if (r < 0) {
_LOGW ("failed to enable broadcast mode (%d)", r);
goto error;
}
dhcp_lease_load (&lease, priv->lease_file);
if (last_ip4_address)