diff options
author | pacien | 2018-02-16 18:42:02 +0100 |
---|---|---|
committer | pacien | 2018-02-16 18:42:02 +0100 |
commit | d360837d494a86930b8323a99691dc52925eb7ea (patch) | |
tree | 2fc1a8b1bf70d0fdbaa45a0185b0158f23a29a5d /app/src/main/java/org/pacien/tincapp/commands/TincApp.kt | |
parent | 5a4f0f964e41847b10ed44ac1f5b2bbf060102c3 (diff) | |
download | tincapp-d360837d494a86930b8323a99691dc52925eb7ea.tar.gz |
Cosmetic
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/commands/TincApp.kt')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/commands/TincApp.kt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/commands/TincApp.kt b/app/src/main/java/org/pacien/tincapp/commands/TincApp.kt index 11adb69..e5172c8 100644 --- a/app/src/main/java/org/pacien/tincapp/commands/TincApp.kt +++ b/app/src/main/java/org/pacien/tincapp/commands/TincApp.kt | |||
@@ -14,7 +14,6 @@ import java.io.FileNotFoundException | |||
14 | * @author pacien | 14 | * @author pacien |
15 | */ | 15 | */ |
16 | object TincApp { | 16 | object TincApp { |
17 | |||
18 | private val SCRIPT_SUFFIXES = listOf("-up", "-down", "-created", "-accepted") | 17 | private val SCRIPT_SUFFIXES = listOf("-up", "-down", "-created", "-accepted") |
19 | private val STATIC_SCRIPTS = listOf("tinc", "host", "subnet", "invitation").flatMap { s -> SCRIPT_SUFFIXES.map { s + it } } | 18 | private val STATIC_SCRIPTS = listOf("tinc", "host", "subnet", "invitation").flatMap { s -> SCRIPT_SUFFIXES.map { s + it } } |
20 | 19 | ||
@@ -49,5 +48,4 @@ object TincApp { | |||
49 | .map { Pair(if (newPassphrase?.isNotEmpty() == true) PemUtils.encrypt(it.first, newPassphrase) else it.first, it.second) } | 48 | .map { Pair(if (newPassphrase?.isNotEmpty() == true) PemUtils.encrypt(it.first, newPassphrase) else it.first, it.second) } |
50 | .forEach { PemUtils.write(it.first, it.second.writer()) } | 49 | .forEach { PemUtils.write(it.first, it.second.writer()) } |
51 | } | 50 | } |
52 | |||
53 | } | 51 | } |