mirror of
git://erdgeist.org/opentracker
synced 2025-02-17 06:31:30 +08:00
Don't default the incoming port to 6881 but rather use 0 to indicate a less than valid announce
This commit is contained in:
parent
274a03f3d7
commit
3afbbc37d0
@ -312,7 +312,7 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws,
|
|||||||
int numwant, tmp, scanon;
|
int numwant, tmp, scanon;
|
||||||
ot_peer peer;
|
ot_peer peer;
|
||||||
ot_hash *hash = NULL;
|
ot_hash *hash = NULL;
|
||||||
unsigned short port = htons(6881);
|
unsigned short port = 0;
|
||||||
char *write_ptr;
|
char *write_ptr;
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
struct http_data *cookie = io_getcookie( sock );
|
struct http_data *cookie = io_getcookie( sock );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user