diff options
author | irungentoo <irungentoo@gmail.com> | 2015-04-18 09:32:17 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-04-18 09:32:17 -0400 |
commit | 0886b4f7b81b53a38563289f98d56f4943522a0a (patch) | |
tree | 8d83da08eb21eeed05df8bdb25e586406e361e81 /toxcore/TCP_connection.c | |
parent | 863b6d6f4cc2c1f22055d92415af5c7421a8fc8a (diff) |
Enable proxy support in TCP_connection.
Diffstat (limited to 'toxcore/TCP_connection.c')
-rw-r--r-- | toxcore/TCP_connection.c | 4 |
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 | ||
981 | TCP_Connections *new_tcp_connections(DHT *dht) | 981 | TCP_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 | ||