From: Daniel Wagner <wagi@monom.org>
To: connman@lists.linux.dev
Cc: daniel antoine <univac55@gmail.com>, Daniel Wagner <wagi@monom.org>
Subject: [PATCH] main: Set default online check URL also when no config provided
Date: Sun, 27 Feb 2022 18:15:49 +0100 [thread overview]
Message-ID: <20220227171549.32664-1-wagi@monom.org> (raw)
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")
---
src/main.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/main.c b/src/main.c
index e209cf261300..bf6ccad5fc08 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}
--
2.35.1
next reply other threads:[~2022-02-27 17:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-27 17:15 Daniel Wagner [this message]
2022-02-27 17:18 ` [PATCH] main: Set default online check URL also when no config provided Daniel Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220227171549.32664-1-wagi@monom.org \
--to=wagi@monom.org \
--cc=connman@lists.linux.dev \
--cc=univac55@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).