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:
Oliver Gugger committed 2021-11-23 09:53:36 +01:00
1 parent ca0266d31b
commit 5155ebc405
4 files changed
+46 -10

No files matched your search

+1 -1
View File
@@ -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