From 719858548d6b3029c0d0a6f3cba5b2aa3aa09c8c Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 6 Oct 2008 20:18:42 +0000 Subject: Bugfix: API change missed in two points, when calling return_peers_for_torrent. is_tcp was replaced by FLAG_TCP or FLAG_UDP --- ot_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ot_http.c') diff --git a/ot_http.c b/ot_http.c index 8a0f069..68bf58a 100644 --- a/ot_http.c +++ b/ot_http.c @@ -488,7 +488,7 @@ static ssize_t http_handle_announce( const int64 client_socket, char *data ) { len = remove_peer_from_torrent( hash, &peer, SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, FLAG_TCP ); else { torrent = add_peer_to_torrent( hash, &peer WANT_SYNC_PARAM( 0 ) ); - if( !torrent || !( len = return_peers_for_torrent( hash, numwant, SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, 1 ) ) ) HTTPERROR_500; + if( !torrent || !( len = return_peers_for_torrent( hash, numwant, SUCCESS_HTTP_HEADER_LENGTH + static_outbuf, FLAG_TCP ) ) ) HTTPERROR_500; } stats_issue_event( EVENT_ANNOUNCE, FLAG_TCP, len); return len; -- cgit v1.2.3