diff --git a/library/storage_thread_requests/requests/node_debug_request.nim b/library/storage_thread_requests/requests/node_debug_request.nim index 15addb96..2edb5e13 100644 --- a/library/storage_thread_requests/requests/node_debug_request.nim +++ b/library/storage_thread_requests/requests/node_debug_request.nim @@ -64,7 +64,9 @@ proc getDebug( if storage[].autonatService.isSome: $storage[].autonatService.get.networkReachability else: - "unknown" + "unknown", + "relayRunning": + storage[].autoRelayService.isSome and storage[].autoRelayService.get.isRunning, }, } diff --git a/storage/storage.nim b/storage/storage.nim index 3d51578c..2a28d7ee 100644 --- a/storage/storage.nim +++ b/storage/storage.nim @@ -57,7 +57,7 @@ type taskpool: Taskpool # Expose to make reachability accessible from rest api autonatService*: Option[AutonatV2Service] - autoRelayService: Option[AutoRelayService] + autoRelayService*: Option[AutoRelayService] natMapper: Option[NatMapper] natRouter*: Option[NatRouter] isStarted: bool