Router: Reverse API change from banlistRouterHard back to BanlistRouterForever

This commit is contained in:
eyedeekay committed 2023-10-15 20:22:37 -04:00
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;