main: Set default online check URL also when no config provided
PATCH 1/1 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 <[email protected]>
Fixes 9d7e55f40e80 ("wispr: Add online check url config options")
--- src/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
src/main.c +8 -2
@@ -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 ; }
Signature · 1 line
2.35.1
Daniel Wagner
AppliedQuoted 5 lines · Daniel Wagner
We need to set the default URL also when no config exist.
Reported by: Daniel Antoine <[email protected]>
Applied, thanks!
[1/1] main: Set default online check URL also when no config provided
commit: d48584aa8bed06f9b728579ea64deb8d30b03b86
Best regards,
Signature · 1 line
Daniel Wagner <[email protected]>