diff --git a/src/wispr.c b/src/wispr.c index c63dc819..d69ed70b 100644 --- a/src/wispr.c +++ b/src/wispr.c @@ -916,6 +916,11 @@ static int wispr_portal_detect(struct connman_wispr_portal_context *wp_context) wp_context->status_url = STATUS_URL_IPV6; } + /* Respect EnableOnlineCheck globally */ + if (connman_setting_get_bool("EnableOnlineCheck")) { + wp_context->status_url = "localhost"; + } + for (i = 0; nameservers[i]; i++) g_web_add_nameserver(wp_context->web, nameservers[i]);