diff options
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 | } |