summaryrefslogtreecommitdiff
path: root/src/core/servers-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/servers-setup.c')
-rw-r--r--src/core/servers-setup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/servers-setup.c b/src/core/servers-setup.c
index 3f500a07..a8dd8467 100644
--- a/src/core/servers-setup.c
+++ b/src/core/servers-setup.c
@@ -156,6 +156,9 @@ static void server_setup_fill_server(SERVER_CONNECT_REC *conn,
sserver->last_connect = time(NULL);
+ if (sserver->no_proxy)
+ g_free_and_null(conn->proxy);
+
if (sserver->family != 0 && conn->family == 0)
conn->family = sserver->family;
if (sserver->port > 0 && conn->port <= 0)