mirror of https://github.com/aria2/aria2
2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Ignore port message with port=0. * src/BtPortMessage.ccpull/1/head
parent
011871cec8
commit
e56f2afbbf
|
@ -1,3 +1,8 @@
|
||||||
|
2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Ignore port message with port=0.
|
||||||
|
* src/BtPortMessage.cc
|
||||||
|
|
||||||
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Run autoupdate
|
Run autoupdate
|
||||||
|
|
|
@ -71,6 +71,10 @@ SharedHandle<BtPortMessage> BtPortMessage::create(const unsigned char* data, siz
|
||||||
void BtPortMessage::doReceivedAction()
|
void BtPortMessage::doReceivedAction()
|
||||||
{
|
{
|
||||||
if(!_taskFactory.isNull() && !_taskQueue.isNull()) {
|
if(!_taskFactory.isNull() && !_taskQueue.isNull()) {
|
||||||
|
if(_port == 0) {
|
||||||
|
logger->debug("Ignored port 0.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
// node id is random at this point. When ping reply received, new DHTNode
|
// node id is random at this point. When ping reply received, new DHTNode
|
||||||
// instance created with proper node ID and is added to a routing table.
|
// instance created with proper node ID and is added to a routing table.
|
||||||
SharedHandle<DHTNode> node(new DHTNode());
|
SharedHandle<DHTNode> node(new DHTNode());
|
||||||
|
|
Loading…
Reference in New Issue