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