From f60d26c4bf199dc377c152bfda7370858781312c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 10 Dec 2018 15:47:16 +0100 Subject: Export actual configuration for zips Reported-by: John Greenwood Signed-off-by: Jason A. Donenfeld --- .../java/com/wireguard/android/preference/ZipExporterPreference.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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) { -- cgit v1.2.3