summaryrefslogtreecommitdiff
path: root/bitmask_go/launcher_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'bitmask_go/launcher_windows.go')
-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