Browse Source

Fix immediate overwrite in the X-forwarded-for passing case. Thanks to Alexander Luetjen.

dynamic-accesslists
erdgeist 11 years ago
parent
commit
954f5029df
  1. 2
      ot_http.c

2
ot_http.c

@ -401,11 +401,11 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws, @@ -401,11 +401,11 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws,
OT_SETIP( &ws->peer, cookie->ip );
} else
#endif
OT_SETIP( &ws->peer, cookie->ip );
ws->peer_id = NULL;
ws->hash = NULL;
OT_SETIP( &ws->peer, cookie->ip );
OT_SETPORT( &ws->peer, &port );
OT_PEERFLAG( &ws->peer ) = 0;
numwant = 50;

Loading…
Cancel
Save