allow spaces in dest and proxy lists

This commit is contained in:
zzz
2009-04-24 16:38:44 +00:00
parent 178b5996a5
commit 5b41827a7b
3 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ public class I2PTunnelConnectClient extends I2PTunnelClientBase implements Runna
} }
if (wwwProxy != null) { if (wwwProxy != null) {
StringTokenizer tok = new StringTokenizer(wwwProxy, ","); StringTokenizer tok = new StringTokenizer(wwwProxy, ", ");
while (tok.hasMoreTokens()) while (tok.hasMoreTokens())
_proxyList.add(tok.nextToken().trim()); _proxyList.add(tok.nextToken().trim());
} }

View File

@ -152,7 +152,7 @@ public class I2PTunnelHTTPClient extends I2PTunnelClientBase implements Runnable
} }
if (wwwProxy != null) { if (wwwProxy != null) {
StringTokenizer tok = new StringTokenizer(wwwProxy, ","); StringTokenizer tok = new StringTokenizer(wwwProxy, ", ");
while (tok.hasMoreTokens()) while (tok.hasMoreTokens())
proxyList.add(tok.nextToken().trim()); proxyList.add(tok.nextToken().trim());
} }

View File

@ -46,7 +46,7 @@ public class I2PTunnelIRCClient extends I2PTunnelClientBase implements Runnable
notifyThis, notifyThis,
"IRCHandler " + (++__clientId), tunnel, pkf); "IRCHandler " + (++__clientId), tunnel, pkf);
StringTokenizer tok = new StringTokenizer(destinations, ","); StringTokenizer tok = new StringTokenizer(destinations, ", ");
dests = new ArrayList(1); dests = new ArrayList(1);
while (tok.hasMoreTokens()) { while (tok.hasMoreTokens()) {
String destination = tok.nextToken(); String destination = tok.nextToken();