diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-06-21 17:06:45 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-06-21 17:06:45 +0200 |
commit | 1951fb256a7559f8eac2b60d91dde5c2aa076c5c (patch) | |
tree | 21200c042cdd3090da32de2df4b6e4d4d675681d | |
parent | 71f0b807670901dca8698deba1e21dd5b2a09567 (diff) |
[bug] the nim helper wants the args as space separated
-rw-r--r-- | bitmask_go/launcher_windows.go | 7 |
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 |