From 1951fb256a7559f8eac2b60d91dde5c2aa076c5c Mon Sep 17 00:00:00 2001
From: Ruben Pollan <meskio@sindominio.net>
Date: Thu, 21 Jun 2018 17:06:45 +0200
Subject: [PATCH] [bug] the nim helper wants the args as space separated

---
 bitmask_go/launcher_windows.go | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bitmask_go/launcher_windows.go b/bitmask_go/launcher_windows.go
index cff9daab..ddebfbe8 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
-- 
GitLab