Add auto relay in c binding

This commit is contained in:
Arnaud 2026-05-12 15:14:01 +04:00
parent fac2113381
commit a53d93f703
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA
2 changed files with 4 additions and 2 deletions

View File

@ -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,
},
}

View File

@ -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