diff options
author | Daniel Wagner <wagi@monom.org> | 2022-02-27 18:15:49 +0100 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2022-02-27 18:17:53 +0100 |
commit | d48584aa8bed06f9b728579ea64deb8d30b03b86 (patch) | |
tree | 3dce02a25eb843d21d2efbca4b762a47dadb7f0c | |
parent | b335791af9194d1bd7b9821f4c5abc5405109557 (diff) | |
download | connman-d48584aa8bed06f9b728579ea64deb8d30b03b86.tar.gz |
main: Set default online check URL also when no config provided
We need to set the default URL also when no config exist.
Reported by: Daniel Antoine <univac55@gmail.com>
Fixes: 9d7e55f40e80 ("wispr: Add online check url config options")
-rw-r--r-- | src/main.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -318,11 +318,17 @@ static void parse_config(GKeyFile *config) if (!config) { connman_settings.auto_connect = - parse_service_types(default_auto_connect, CONF_ARRAY_SIZE(default_auto_connect)); + parse_service_types(default_auto_connect, + CONF_ARRAY_SIZE(default_auto_connect)); connman_settings.favorite_techs = - parse_service_types(default_favorite_techs, CONF_ARRAY_SIZE(default_favorite_techs)); + parse_service_types(default_favorite_techs, + CONF_ARRAY_SIZE(default_favorite_techs)); connman_settings.blacklisted_interfaces = g_strdupv(default_blacklist); + connman_settings.online_check_ipv4_url = + g_strdup(DEFAULT_ONLINE_CHECK_IPV4_URL); + connman_settings.online_check_ipv6_url = + g_strdup(DEFAULT_ONLINE_CHECK_IPV6_URL); return; } |