1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +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:
Charles Kerr 2009-05-16 14:31:18 +00:00
parent 1c3f3acbca
commit 9fe388cf70
2 changed files with 2 additions and 1 deletions

View file

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

View file

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