[evolution-data-server/gnome-3-20] Bug 767786 - Use socks:// scheme for Camel accounts proxy lookup



commit 2cbabb495500ebeb0d7ff394c9331dee96a562c7
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 20 17:45:37 2016 +0200

    Bug 767786 - Use socks:// scheme for Camel accounts proxy lookup

 camel/camel-network-service.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/camel/camel-network-service.c b/camel/camel-network-service.c
index 1c5357f..5be26d3 100644
--- a/camel/camel-network-service.c
+++ b/camel/camel-network-service.c
@@ -592,7 +592,12 @@ network_service_new_connectable (CamelNetworkService *service)
        port = camel_network_settings_get_port (network_settings);
 
        if (host && *host)
-               connectable = g_network_address_new (host, port);
+               connectable = g_object_new (G_TYPE_NETWORK_ADDRESS,
+                       "scheme", "socks",
+                       "hostname", host,
+                       "port", port,
+                       NULL);
+
 
        g_free (host);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]