Commit 2e2f5669 authored by Lubomir Rintel's avatar Lubomir Rintel 🥕

ifcfg-rh: short circuit the IP configuration parsing on IPv4LL

We need the other keys, such as may_fail, too.
parent 7d1709d7
......@@ -973,12 +973,7 @@ make_ip4_setting (shvarFile *ifcfg,
else
method = NM_SETTING_IP4_CONFIG_METHOD_DISABLED;
} else if (!g_ascii_strcasecmp (value, "autoip")) {
g_free (value);
g_object_set (s_ip4,
NM_SETTING_IP_CONFIG_METHOD, NM_SETTING_IP4_CONFIG_METHOD_LINK_LOCAL,
NM_SETTING_IP_CONFIG_NEVER_DEFAULT, never_default,
NULL);
return NM_SETTING (s_ip4);
method = NM_SETTING_IP4_CONFIG_METHOD_LINK_LOCAL;
} else if (!g_ascii_strcasecmp (value, "shared")) {
int idx;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment