mirror of
https://github.com/transmission/transmission
synced 2025-01-01 12:35:22 +00:00
Fix broken tr_sessionSetPeerPortRandom() function. (#3569)
This commit is contained in:
parent
df7a44adb2
commit
8e604b44a5
1 changed files with 3 additions and 3 deletions
|
@ -1291,10 +1291,10 @@ uint16_t tr_sessionGetPeerPort(tr_session const* session)
|
||||||
|
|
||||||
uint16_t tr_sessionSetPeerPortRandom(tr_session* session)
|
uint16_t tr_sessionSetPeerPortRandom(tr_session* session)
|
||||||
{
|
{
|
||||||
TR_ASSERT(tr_isSession(session));
|
tr_port p = getRandomPort(session);
|
||||||
|
tr_sessionSetPeerPort(session, p.host());
|
||||||
|
|
||||||
session->setPeerPort(getRandomPort(session));
|
return p.host();
|
||||||
return session->private_peer_port.host();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void tr_sessionSetPeerPortRandomOnStart(tr_session* session, bool random)
|
void tr_sessionSetPeerPortRandomOnStart(tr_session* session, bool random)
|
||||||
|
|
Loading…
Reference in a new issue