tor: pass explicitly given control ports to starter

This commit is contained in:
Péter Szilágyi 2018-06-29 13:27:29 +03:00
parent c8632525b3
commit 1b07faea8f
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
1 changed files with 2 additions and 0 deletions

View File

@ -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