core: fix constant name for IPv4 method

Fix the name for consistency, even if this is harmless because the
IPv4 and IPv6 values are the same.
This commit is contained in:
Beniamino Galvani
2025-07-04 18:04:56 +02:00
parent 55765d2914
commit 62558d50be

View File

@@ -1894,7 +1894,7 @@ get_ip_method_auto(NMDevice *device, int addr_family)
/* We cannot do DHCPv4 on a PPP link, instead we get "auto" IP addresses
* by pppd. Return "manual" here, which has the suitable effect to a
* (zero) manual addresses in addition. */
return NM_SETTING_IP6_CONFIG_METHOD_MANUAL;
return NM_SETTING_IP4_CONFIG_METHOD_MANUAL;
}
return NM_SETTING_IP6_CONFIG_METHOD_AUTO;