Merge branch 'master' of dan/libricochet-go into master
This commit is contained in:
commit
9e4e042ffb
|
@ -63,6 +63,9 @@ func (ols *onionListenService) Close() {
|
|||
|
||||
// GetBootstrapStatus returns an int 0-100 on the percent the bootstrapping of the underlying network is at and an optional string message
|
||||
func (tp *torProvider) GetBootstrapStatus() (int, string) {
|
||||
if tp.t == nil {
|
||||
return 0, "error: no tor, trying to restart..."
|
||||
}
|
||||
kvs, err := tp.t.Control.GetInfo("status/bootstrap-phase")
|
||||
if err != nil {
|
||||
return 0, "error"
|
||||
|
|
Reference in New Issue