summaryrefslogtreecommitdiffhomepage
path: root/app/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-10 15:47:16 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-10 15:47:16 +0100
commitf60d26c4bf199dc377c152bfda7370858781312c (patch)
tree4b496401caa6ce4e0b6ce4e90b1d294954af774b /app/src
parentb43044fee9d71f2d0768e21521ca17a0af1907f4 (diff)
Export actual configuration for zips
Reported-by: John Greenwood <ijohnyyh@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java b/app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java
index c347531b..5e33ba13 100644
--- a/app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java
+++ b/app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java
@@ -70,7 +70,7 @@ public class ZipExporterPreference extends Preference {
for (int i = 0; i < futureConfigs.size(); ++i) {
zip.putNextEntry(new ZipEntry(tunnels.get(i).getName() + ".conf"));
zip.write(futureConfigs.get(i).getNow(null).
- toString().getBytes(StandardCharsets.UTF_8));
+ toWgQuickString().getBytes(StandardCharsets.UTF_8));
}
zip.closeEntry();
} catch (final Exception e) {