mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 19:32:56 +00:00
Router: Reverse API change from banlistRouterHard back to BanlistRouterForever
This commit is contained in:
1 parent
a2446e1d0c
commit
0acae98ccd
15 files changed
+21
-21
No files matched your search
@@ -658,7 +658,7 @@ class NewsFetcher extends UpdateRunner {
|
||||
}
|
||||
Hash h = Hash.create(b);
|
||||
if (!ban.isBanlistedHard(h)) {
|
||||
ban.banlistRouterHard(h, reason);
|
||||
ban.banlistRouterForever(h, reason);
|
||||
_context.commSystem().forceDisconnect(h);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -21,7 +21,7 @@ public class ConfigPeerHandler extends FormHandler {
|
||||
} else if (_action.equals(_t("Ban peer until restart"))) {
|
||||
Hash h = getHash();
|
||||
if (h != null) {
|
||||
_context.banlist().banlistRouterHard(h, _t("Manually banned via {0}"), "<a href=\"configpeer\">configpeer</a>");
|
||||
_context.banlist().banlistRouterForever(h, _t("Manually banned via {0}"), "<a href=\"configpeer\">configpeer</a>");
|
||||
_context.commSystem().forceDisconnect(h);
|
||||
addFormNotice(_t("Peer") + " " + _peer + " " + _t("banned until restart") );
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user