tor+healthcheck: fix healthcheck for multiple services
Fixes #6013. This commit fixes the Tor healthcheck that would previously fail if there were multiple hidden service registered. In the controller, we only need to know that our service is contained in the list of active services. But we can't do a string equality check since there might be multiple services, comma separated.
This commit is contained in:
4 files changed
+46
-10
No files matched your search
@@ -48,7 +48,7 @@ func CheckTorServiceStatus(tc *tor.Controller,
|
||||
return restartTorController(tc, createService)
|
||||
|
||||
// If this is not a connection layer error, such as
|
||||
// ErrServiceNotCreated or ErrServiceIDUnmatch, there's little we can
|
||||
// ErrServiceNotCreated or ErrServiceIDMismatch, there's little we can
|
||||
// do but to report the error to the user.
|
||||
default:
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user