Browse Source

Don't default the incoming port to 6881 but rather use 0 to indicate a less than valid announce

dynamic-accesslists
erdgeist 16 years ago
parent
commit
3afbbc37d0
  1. 2
      ot_http.c

2
ot_http.c

@ -312,7 +312,7 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws, @@ -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 );

Loading…
Cancel
Save