From 3afbbc37d0d3d60d7d49838130761271273ed2ca Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 14 Jul 2009 13:05:03 +0000 Subject: Don't default the incoming port to 6881 but rather use 0 to indicate a less than valid announce --- 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 7640676..7334609 100644 --- a/ot_http.c +++ b/ot_http.c @@ -312,7 +312,7 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws, int numwant, tmp, scanon; ot_peer peer; ot_hash *hash = NULL; - unsigned short port = htons(6881); + unsigned short port = 0; char *write_ptr; ssize_t len; struct http_data *cookie = io_getcookie( sock ); -- cgit v1.2.3