aboutsummaryrefslogtreecommitdiffstatshomepage
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
commite168d095c226a3366c1040b7f3edc92d7b2957c3 (patch)
tree4b496401caa6ce4e0b6ce4e90b1d294954af774b
parentAdd upstream go patch for lstat (diff)
downloadwireguard-android-e168d095c226a3366c1040b7f3edc92d7b2957c3.tar.xz
wireguard-android-e168d095c226a3366c1040b7f3edc92d7b2957c3.zip
Export actual configuration for zips
Reported-by: John Greenwood <ijohnyyh@gmail.com>
-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 c347531..5e33ba1 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) {