tor: pass explicitly given control ports to starter
This commit is contained in:
parent
c8632525b3
commit
1b07faea8f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue