From 8548ecebf3b21b3cb4cce072064c0ce95a8a76b9 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 1 Jun 2026 17:53:33 +0400 Subject: [PATCH] Fix openapi --- openapi.yaml | 2 +- storage/nat.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index b736ec30..3608cc75 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -151,7 +151,7 @@ components: description: Whether the AutoRelay service is currently running portMapping: type: string - enum: [none, upnp, pmp, pcp] + enum: [none, upnp, pmp, pcp, direct] description: Active NAT port mapping type DataList: diff --git a/storage/nat.nim b/storage/nat.nim index a31adc07..a0b175b0 100644 --- a/storage/nat.nim +++ b/storage/nat.nim @@ -230,7 +230,7 @@ proc reachabilityStr*(autonat: Option[AutonatV2Service]): string = if autonat.isSome: $autonat.get.networkReachability else: - "unknown" + "Unknown" proc portMappingStr*(natMapper: Option[NatPortMapper]): string = if natMapper.isNone or natMapper.get.activeMappingProtocol.isNone: