I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f69b7573 authored by zzz's avatar zzz
Browse files

* i2psnark: Support ports in announce URLs (ticket #1283)

parent 8371b8f8
No related branches found
No related tags found
No related merge requests found
...@@ -866,7 +866,7 @@ public class TrackerClient implements Runnable { ...@@ -866,7 +866,7 @@ public class TrackerClient implements Runnable {
} catch (MalformedURLException mue) { } catch (MalformedURLException mue) {
return null; return null;
} }
if (url.getPort() >= 0 || !url.getProtocol().equals("http")) if (!url.getProtocol().equals("http"))
return null; return null;
String host = url.getHost(); String host = url.getHost();
if (host.endsWith(".i2p")) if (host.endsWith(".i2p"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment