Changeset f3521228


Ignore:
Timestamp:
Sep 8, 2011 2:10:08 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
0a83510
Parents:
ab38e35
Message:
  • Blocklist: Include IP in shitlist reason
File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/Blocklist.java

    rab38e35 rf3521228  
    473473     * but I suppose it could.
    474474     */
    475     public List<byte[]> getAddresses(Hash peer) {
     475    private List<byte[]> getAddresses(Hash peer) {
    476476        List<byte[]> rv = new ArrayList(1);
    477477        RouterInfo pinfo = _context.netDb().lookupRouterInfoLocally(peer);
     
    516516                if (! _context.shitlist().isShitlisted(peer))
    517517                    // nice knowing you...
    518                     shitlist(peer);
     518                    shitlist(peer, ip);
    519519                return true;
    520520            }
     
    679679     *
    680680     */
    681     public void shitlist(Hash peer) {
     681    private void shitlist(Hash peer, byte[] ip) {
    682682        // Temporary reason, until the job finishes
    683         _context.shitlist().shitlistRouterForever(peer, _x("IP banned"));
     683        String reason = _x("IP banned by blocklist.txt entry {0}");
     684        _context.shitlist().shitlistRouterForever(peer, reason, toStr(ip));
    684685        if (!  _context.getBooleanPropertyDefaultTrue(PROP_BLOCKLIST_DETAIL))
    685686            return;
Note: See TracChangeset for help on using the changeset viewer.