summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/ConfigConverter.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-12-25 23:51:48 +0100
committerArne Schwabe <arne@rfc2549.org>2012-12-25 23:51:48 +0100
commit367fd28be00e541f251854893b0eeeb5168e59d3 (patch)
tree53da64ff70568f46a271cc8a916130b1b8f7239e /src/de/blinkt/openvpn/ConfigConverter.java
parentc1d78fac8eefc4f8c4eaab7b91bf54698fe29466 (diff)
parentc9dc454f4ec38f075f951fbf32935054023eed94 (diff)
Merge again
Diffstat (limited to 'src/de/blinkt/openvpn/ConfigConverter.java')
-rw-r--r--src/de/blinkt/openvpn/ConfigConverter.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/ConfigConverter.java b/src/de/blinkt/openvpn/ConfigConverter.java
index c08b176d..40aa24e0 100644
--- a/src/de/blinkt/openvpn/ConfigConverter.java
+++ b/src/de/blinkt/openvpn/ConfigConverter.java
@@ -6,6 +6,7 @@ import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
+import java.io.InputStreamReader;
import java.util.List;
import java.util.Vector;
@@ -407,7 +408,9 @@ public class ConfigConverter extends ListActivity {
private void doImport(InputStream is) {
ConfigParser cp = new ConfigParser();
try {
- cp.parseConfig(is);
+ InputStreamReader isr = new InputStreamReader(is);
+
+ cp.parseConfig(isr);
VpnProfile vp = cp.convertProfile();
mResult = vp;
embedFiles();