add versionCallback and use on reboot tor; change start preference for bundled tor; new go 1.17 build directives #31

Merged
dan merged 3 commits from versionCallback into master 2022-08-04 05:15:04 +00:00
1 changed files with 0 additions and 16 deletions
Showing only changes of commit 9a134810c3 - Show all commits

View File

@ -214,22 +214,6 @@ func (tp *torProvider) GetVersion() string {
return tp.version
}
func (tp *torProvider) getVersionFromControlPort() string {
tp.lock.Lock()
defer tp.lock.Unlock()
if tp.t == nil {
return "No Tor"
}
pinfo, err := tp.t.Control.ProtocolInfo()
if err == nil {
return pinfo.TorVersion
}
return "No Tor"
}
func (tp *torProvider) closed() bool {
tp.lock.Lock()
defer tp.lock.Unlock()