mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(trunk libT) BitTorrent message #9 is for setting the peer's DHT listening port, not their BitTorrent listening port. (tiennou)
This commit is contained in:
parent
1c3f3acbca
commit
9fe388cf70
2 changed files with 2 additions and 1 deletions
|
@ -82,6 +82,7 @@ typedef struct tr_peer
|
|||
|
||||
uint8_t encryption_preference;
|
||||
tr_port port;
|
||||
tr_port dht_port;
|
||||
tr_address addr;
|
||||
struct tr_peerIo * io;
|
||||
struct peer_atom * atom;
|
||||
|
|
|
@ -1429,7 +1429,7 @@ readBtMessage( tr_peermsgs * msgs, struct evbuffer * inbuf, size_t inlen )
|
|||
|
||||
case BT_PORT:
|
||||
dbgmsg( msgs, "Got a BT_PORT" );
|
||||
tr_peerIoReadUint16( msgs->peer->io, inbuf, &msgs->peer->port );
|
||||
tr_peerIoReadUint16( msgs->peer->io, inbuf, &msgs->peer->dht_port );
|
||||
break;
|
||||
|
||||
case BT_FEXT_SUGGEST:
|
||||
|
|
Loading…
Reference in a new issue