diff options
author | erdgeist <> | 2009-07-14 13:05:03 +0000 |
---|---|---|
committer | erdgeist <> | 2009-07-14 13:05:03 +0000 |
commit | 3afbbc37d0d3d60d7d49838130761271273ed2ca (patch) | |
tree | 2bd2842835fb51d0e9957c22084008d86ca530ba | |
parent | 274a03f3d7dea1620d93b78d2d50e5c8915fe643 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ); |