mirror of https://github.com/aria2/aria2
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Don't send ip parameter to a tracker if ip parameter is empty string. * src/DefaultBtAnnounce.ccpull/1/head
parent
064754396e
commit
9a7eee5cfa
|
@ -1,3 +1,9 @@
|
|||
2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Don't send ip parameter to a tracker if ip parameter is empty
|
||||
string.
|
||||
* src/DefaultBtAnnounce.cc
|
||||
|
||||
2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Adjusted line feed.
|
||||
|
|
|
@ -167,7 +167,7 @@ std::string DefaultBtAnnounce::getAnnounceUrl() {
|
|||
} else {
|
||||
url += "&supportcrypto=1";
|
||||
}
|
||||
if(option->defined(PREF_BT_EXTERNAL_IP)) {
|
||||
if(!option->blank(PREF_BT_EXTERNAL_IP)) {
|
||||
url += "&ip="+option->get(PREF_BT_EXTERNAL_IP);
|
||||
}
|
||||
return url;
|
||||
|
|
Loading…
Reference in New Issue