summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-06-21 17:06:45 +0200
committerRuben Pollan <meskio@sindominio.net>2018-06-21 17:06:45 +0200
commit1951fb256a7559f8eac2b60d91dde5c2aa076c5c (patch)
tree21200c042cdd3090da32de2df4b6e4d4d675681d
parent71f0b807670901dca8698deba1e21dd5b2a09567 (diff)
[bug] the nim helper wants the args as space separated
-rw-r--r--bitmask_go/launcher_windows.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitmask_go/launcher_windows.go b/bitmask_go/launcher_windows.go
index cff9daa..ddebfbe 100644
--- a/bitmask_go/launcher_windows.go
+++ b/bitmask_go/launcher_windows.go
@@ -19,6 +19,7 @@ package bitmask
import (
"encoding/json"
"net/textproto"
+ "strings"
)
const (
@@ -59,9 +60,9 @@ func (l *launcher) send(cmd string, args ...string) error {
args = []string{}
}
command := struct {
- Cmd string `json:"cmd"`
- Args []string `json:"args"`
- }{cmd, args}
+ Cmd string `json:"cmd"`
+ Args string `json:"args"`
+ }{cmd, strings.Join(args, " ")}
bytesCmd, err := json.Marshal(command)
if err != nil {
return err