mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-14 04:57:46 +02:00
GSimpleProxyResolver: fix for the case where the default proxy is NULL
This commit is contained in:
@@ -344,6 +344,8 @@ g_simple_proxy_resolver_lookup (GProxyResolver *proxy_resolver,
|
|||||||
|
|
||||||
if (!proxy)
|
if (!proxy)
|
||||||
proxy = priv->default_proxy;
|
proxy = priv->default_proxy;
|
||||||
|
if (!proxy)
|
||||||
|
proxy = "direct://";
|
||||||
|
|
||||||
if (!strncmp (proxy, "socks://", 8))
|
if (!strncmp (proxy, "socks://", 8))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user