i2ptunnel: Check port mapper for webapp presence (ticket #2161)

This commit is contained in:
zzz
2018-03-14 14:09:41 +00:00
parent 66ee7b563a
commit 6eb09bd0c8
5 changed files with 82 additions and 12 deletions

View File

@ -9,6 +9,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.io.Reader;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
@ -68,7 +69,15 @@ public class TranslateReader extends FilterReader {
* @param in UTF-8
*/
public TranslateReader(I2PAppContext ctx, String bundle, InputStream in) throws IOException {
super(new BufferedReader(new InputStreamReader(in, "UTF-8")));
this(ctx, bundle, new BufferedReader(new InputStreamReader(in, "UTF-8")));
}
/**
* @param bundle may be null for tagging only
* @since 0.9.34
*/
public TranslateReader(I2PAppContext ctx, String bundle, Reader in) throws IOException {
super(in);
_ctx = ctx;
_bundle = bundle;
_args = new ArrayList<String>(4);