diff options
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/commands/Tincd.kt')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/commands/Tincd.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/commands/Tincd.kt b/app/src/main/java/org/pacien/tincapp/commands/Tincd.kt index c54b328..19ebfbd 100644 --- a/app/src/main/java/org/pacien/tincapp/commands/Tincd.kt +++ b/app/src/main/java/org/pacien/tincapp/commands/Tincd.kt | |||
@@ -9,12 +9,12 @@ import java.io.IOException | |||
9 | object Tincd { | 9 | object Tincd { |
10 | 10 | ||
11 | @Throws(IOException::class) | 11 | @Throws(IOException::class) |
12 | fun start(netConf: AppPaths.NetConf, fd: Int) { | 12 | fun start(netName: String, fd: Int) { |
13 | Executor.forkExec(Command(AppPaths.tincd().absolutePath) | 13 | Executor.forkExec(Command(AppPaths.tincd().absolutePath) |
14 | .withOption("no-detach") | 14 | .withOption("no-detach") |
15 | .withOption("config", AppPaths.confDir(netConf).absolutePath) | 15 | .withOption("config", AppPaths.confDir(netName).absolutePath) |
16 | .withOption("pidfile", AppPaths.pidFile(netConf).absolutePath) | 16 | .withOption("pidfile", AppPaths.pidFile(netName).absolutePath) |
17 | .withOption("logfile", AppPaths.logFile(netConf).absolutePath) | 17 | .withOption("logfile", AppPaths.logFile(netName).absolutePath) |
18 | .withOption("option", "DeviceType=fd") | 18 | .withOption("option", "DeviceType=fd") |
19 | .withOption("option", "Device=" + fd)) | 19 | .withOption("option", "Device=" + fd)) |
20 | } | 20 | } |