summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2009-07-14 13:05:03 +0000
committererdgeist <>2009-07-14 13:05:03 +0000
commit3afbbc37d0d3d60d7d49838130761271273ed2ca (patch)
tree2bd2842835fb51d0e9957c22084008d86ca530ba
parent274a03f3d7dea1620d93b78d2d50e5c8915fe643 (diff)
Don't default the incoming port to 6881 but rather use 0 to indicate a less than valid announce
-rw-r--r--ot_http.c2
1 files changed, 1 insertions, 1 deletions
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,
312 int numwant, tmp, scanon; 312 int numwant, tmp, scanon;
313 ot_peer peer; 313 ot_peer peer;
314 ot_hash *hash = NULL; 314 ot_hash *hash = NULL;
315 unsigned short port = htons(6881); 315 unsigned short port = 0;
316 char *write_ptr; 316 char *write_ptr;
317 ssize_t len; 317 ssize_t len;
318 struct http_data *cookie = io_getcookie( sock ); 318 struct http_data *cookie = io_getcookie( sock );