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

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

fix changing opentracker list

parent 99311123
No related branches found
No related tags found
No related merge requests found
......@@ -334,6 +334,10 @@ public class I2PSnarkUtil {
return rv;
}
public void setOpenTrackerString(String ot) {
_opts.put(PROP_OPENTRACKERS, ot);
}
public String getOpenTrackerString() {
String rv = (String) _opts.get(PROP_OPENTRACKERS);
if (rv == null)
......
......@@ -194,6 +194,7 @@ public class SnarkManager implements Snark.CompleteListener {
_util.setProxy(eepHost, eepPort);
_util.setMaxUploaders(getInt(PROP_UPLOADERS_TOTAL, Snark.MAX_TOTAL_UPLOADERS));
_util.setMaxUpBW(getInt(PROP_UPBW_MAX, DEFAULT_MAX_UP_BW));
_util.setOpenTrackerString(_config.getProperty(I2PSnarkUtil.PROP_OPENTRACKERS));
getDataDir().mkdirs();
}
......@@ -345,6 +346,7 @@ public class SnarkManager implements Snark.CompleteListener {
if (openTrackers != null) {
if (openTrackers.trim().length() > 0 && !openTrackers.trim().equals(_util.getOpenTrackerString())) {
_config.setProperty(I2PSnarkUtil.PROP_OPENTRACKERS, openTrackers.trim());
_util.setOpenTrackerString(openTrackers);
addMessage("Open Tracker list changed - torrent restart required to take effect.");
changed = true;
}
......
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