Changeset 3acfdbe


Ignore:
Timestamp:
Dec 6, 2013 3:26:12 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
27ce280
Parents:
d9fed57
Message:

i2ptunnel IRC client: Do not filter server PING or client PONG (ticket #1141)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/irc/IRCFilter.java

    rd9fed57 r3acfdbe  
    4040        {
    4141                // "NOTICE", // can contain CTCP
    42                 //"PING",
     42                "PING",
    4343                //"PONG",
    4444                "MODE",
     
    7777
    7878       
    79         if ("PING".equals(command))
    80             return "PING 127.0.0.1"; // no way to know what the ircd to i2ptunnel server con is, so localhost works
    8179        if ("PONG".equals(command)) {
    8280            // Turn the received ":irc.freshcoffee.i2p PONG irc.freshcoffee.i2p :127.0.0.1"
     
    176174                "PASS",
    177175                // "PING",
    178                 // "PONG", // replaced with a filtered PING/PONG since some clients send the server IP (thanks aardvax!)
     176                "PONG",
    179177                // "QUIT", // replace with a filtered QUIT to hide client quit messages
    180178                "RULES",
     
    292290            return rv;
    293291        }
    294         if ("PONG".equals(command))
    295             return "PONG 127.0.0.1"; // no way to know what the ircd to i2ptunnel server con is, so localhost works
    296292
    297293        // Allow all allowedCommands
Note: See TracChangeset for help on using the changeset viewer.