mirror of
https://erdgeist.org/gitweb/opentracker
synced 2024-05-10 07:54:50 +00:00
Fix immediate overwrite in the X-forwarded-for passing case. Thanks to Alexander Luetjen.
This commit is contained in:
@ -401,11 +401,11 @@ static ssize_t http_handle_announce( const int64 sock, struct ot_workstruct *ws,
|
|||||||
OT_SETIP( &ws->peer, cookie->ip );
|
OT_SETIP( &ws->peer, cookie->ip );
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
|
OT_SETIP( &ws->peer, cookie->ip );
|
||||||
|
|
||||||
ws->peer_id = NULL;
|
ws->peer_id = NULL;
|
||||||
ws->hash = NULL;
|
ws->hash = NULL;
|
||||||
|
|
||||||
OT_SETIP( &ws->peer, cookie->ip );
|
|
||||||
OT_SETPORT( &ws->peer, &port );
|
OT_SETPORT( &ws->peer, &port );
|
||||||
OT_PEERFLAG( &ws->peer ) = 0;
|
OT_PEERFLAG( &ws->peer ) = 0;
|
||||||
numwant = 50;
|
numwant = 50;
|
||||||
|
Reference in New Issue
Block a user