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

dynamic-accesslists
erdgeist 12 years ago
parent 4b6f7a7a54
commit 954f5029df

@ -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