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
pull/1/head
Tatsuhiro Tsujikawa 2009-02-07 15:02:32 +00:00
parent 064754396e
commit 9a7eee5cfa
2 changed files with 7 additions and 1 deletions

View File

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

View File

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