diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-12-10 15:47:16 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-12-10 15:47:16 +0100 |
commit | e168d095c226a3366c1040b7f3edc92d7b2957c3 (patch) | |
tree | 4b496401caa6ce4e0b6ce4e90b1d294954af774b /app/src/main/java/com/wireguard | |
parent | e1c51c2267f9bc20f23ef5e88d388eb3a2de8462 (diff) |
Export actual configuration for zips
Reported-by: John Greenwood <ijohnyyh@gmail.com>
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r-- | app/src/main/java/com/wireguard/android/preference/ZipExporterPreference.java | 2 |
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) { |