From 197237aa32d145cd7208ee5097ee52968a1a63fb Mon Sep 17 00:00:00 2001 From: jrandom <jrandom> Date: Mon, 10 Oct 2005 23:05:18 +0000 Subject: [PATCH] 2005-10-10 dust * Implemented a new I2PTunnelIRCClient which locally filters inbound and outbound IRC commands for anonymity and security purposes, removing all CTCP messages except ACTION, as well as stripping the hostname from the USER message (while leaving the nick and 'full name'). The IRC proxy doesn't use this by default, but you can enable it by creating a new "IRC proxy" tunnel on the web interface, or by changing the tunnel type to "ircclient" in i2ptunnel.config. 2005-10-10 jrandom * I2PTunnel http client config cleanup and stats * Minor SSU congestion tweaks and stats * Reduced netDb exploration period --- apps/syndie/java/src/net/i2p/syndie/CLIPost.java | 2 ++ core/java/src/net/i2p/util/EepGet.java | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/syndie/java/src/net/i2p/syndie/CLIPost.java b/apps/syndie/java/src/net/i2p/syndie/CLIPost.java index a5f21ccec1..0b2dfe8869 100644 --- a/apps/syndie/java/src/net/i2p/syndie/CLIPost.java +++ b/apps/syndie/java/src/net/i2p/syndie/CLIPost.java @@ -99,6 +99,8 @@ public class CLIPost { out = new FileOutputStream(fData); entry.write(out, true); out.close(); + fMeta.deleteOnExit(); + fData.deleteOnExit(); } catch (IOException ioe) { System.err.println("Error writing temp files: " + ioe.getMessage()); return; diff --git a/core/java/src/net/i2p/util/EepGet.java b/core/java/src/net/i2p/util/EepGet.java index 91fb686141..7424362734 100644 --- a/core/java/src/net/i2p/util/EepGet.java +++ b/core/java/src/net/i2p/util/EepGet.java @@ -487,12 +487,14 @@ public class EepGet { _log.debug("Status line: [" + line + "]"); StringTokenizer tok = new StringTokenizer(line, " "); if (!tok.hasMoreTokens()) { - System.err.println("ERR: status "+ line); + if (_log.shouldLog(Log.WARN)) + _log.warn("ERR: status "+ line); return -1; } String protocol = tok.nextToken(); // ignored if (!tok.hasMoreTokens()) { - System.err.println("ERR: status "+ line); + if (_log.shouldLog(Log.WARN)) + _log.warn("ERR: status "+ line); return -1; } String rc = tok.nextToken(); -- GitLab