Ticket #7: add-node-from-peer.patch

File add-node-from-peer.patch, 609 bytes (added by jch, 13 years ago)
  • libtransmission/peer-msgs.c

     
    14431443        case BT_PORT:
    14441444            dbgmsg( msgs, "Got a BT_PORT" );
    14451445            tr_peerIoReadUint16( msgs->peer->io, inbuf, &msgs->peer->dht_port );
     1446            if(msgs->peer->port > 0)
     1447                tr_dhtAddNode(msgs->peer->io->session,
     1448                              &msgs->peer->addr, msgs->peer->dht_port, 0);
     1449           
    14461450            break;
    14471451
    14481452        case BT_FEXT_SUGGEST: