From 1b07faea8f291c92352c0b6fd3b004328520cb0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Fri, 29 Jun 2018 13:27:29 +0300 Subject: [PATCH] tor: pass explicitly given control ports to starter --- tor/tor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tor/tor.go b/tor/tor.go index f736b41..d486169 100644 --- a/tor/tor.go +++ b/tor/tor.go @@ -207,6 +207,8 @@ func (t *Tor) startProcess(ctx context.Context, conf *StartConf) error { return err } args = append(args, "--ControlPort", "auto", "--ControlPortWriteToFile", controlPortFile.Name()) + } else { + args = append(args, "--ControlPort", strconv.Itoa(conf.ControlPort)) } // Start process with the args var processCtx context.Context