Merge pull request #4 from karalabe/fix-embedded-start-control-port

tor: pass explicitly given control ports to starter
This commit is contained in:
Chad Retz 2018-06-29 11:10:40 -05:00 committed by GitHub
commit e74374da52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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