summaryrefslogtreecommitdiff
path: root/toxcore/TCP_connection.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-04-18 09:32:17 -0400
committerirungentoo <irungentoo@gmail.com>2015-04-18 09:32:17 -0400
commit0886b4f7b81b53a38563289f98d56f4943522a0a (patch)
tree8d83da08eb21eeed05df8bdb25e586406e361e81 /toxcore/TCP_connection.c
parent863b6d6f4cc2c1f22055d92415af5c7421a8fc8a (diff)
Enable proxy support in TCP_connection.
Diffstat (limited to 'toxcore/TCP_connection.c')
-rw-r--r--toxcore/TCP_connection.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/toxcore/TCP_connection.c b/toxcore/TCP_connection.c
index df0c24af..4da4c9b9 100644
--- a/toxcore/TCP_connection.c
+++ b/toxcore/TCP_connection.c
@@ -978,7 +978,7 @@ unsigned int tcp_copy_connected_relays(TCP_Connections *tcp_c, Node_format *tcp_
978 return copied; 978 return copied;
979} 979}
980 980
981TCP_Connections *new_tcp_connections(DHT *dht) 981TCP_Connections *new_tcp_connections(DHT *dht, TCP_Proxy_Info *proxy_info)
982{ 982{
983 if (dht == NULL) 983 if (dht == NULL)
984 return NULL; 984 return NULL;
@@ -989,6 +989,8 @@ TCP_Connections *new_tcp_connections(DHT *dht)
989 return NULL; 989 return NULL;
990 990
991 temp->dht = dht; 991 temp->dht = dht;
992 temp->proxy_info = *proxy_info;
993
992 return temp; 994 return temp;
993} 995}
994 996