wwan: enable manual IP configuration

Before 1.36, manual addresses from the profile were assigned to the
interface; restore that behavior.

The manual IP configuration also contains the DNS priority from the
profile; so this change ensures that the merged l3cd has a DNS
priority and that dynamically discovered DNS servers are not ignored
by the DNS manager.

Fixes: 58287cbcc0 ('core: rework IP configuration in NetworkManager using layer 3 configuration')
(cherry picked from commit 0717589972)
(cherry picked from commit 2ddb643319)
This commit is contained in:
Beniamino Galvani 2022-07-15 10:52:11 +02:00
parent 8388f67d3d
commit 2c919477c6

View file

@ -623,11 +623,11 @@ is_available(NMDevice *device, NMDeviceCheckDevAvailableFlags flags)
static gboolean
ready_for_ip_config(NMDevice *device, gboolean is_manual)
{
/* Tell NMDevice to only run device-specific IP
/* Tell NMDevice to only run manual and device-specific IP
* configuration (devip) and skip other methods
* (manual, dhcp, etc).
* (dhcp, link-local, shared, etc).
*/
return FALSE;
return is_manual;
}
/*****************************************************************************/