* i2psnark: Support ports in announce URLs, 2nd try (ticket #1283)

This commit is contained in:
zzz
2014-05-27 12:06:59 +00:00
parent ff837cf66e
commit 6ae86f7d81

View File

@ -854,8 +854,7 @@ public class TrackerClient implements Runnable {
return false;
}
return url.getProtocol().equals("http") &&
(url.getHost().endsWith(".i2p") || url.getHost().equals("i2p")) &&
url.getPort() < 0;
(url.getHost().endsWith(".i2p") || url.getHost().equals("i2p"));
}
/**