In case a service is unknown, the expected behavior is that it uses
dhcp. Currently, method will be left blank and thus connman will not be
able to connect to that service unless method is explicitly set through
IPv4.Configuration property.
key = g_strdup_printf("%smethod", prefix);
method = g_key_file_get_string(keyfile, identifier, key, NULL);
- ipconfig->method = __connman_ipconfig_string2method(method);
+ if (method == NULL)
+ ipconfig->method = CONNMAN_IPCONFIG_METHOD_DHCP;
+ else
+ ipconfig->method = __connman_ipconfig_string2method(method);
g_free(key);
key = g_strdup_printf("%snetmask_prefixlen", prefix);