Fix openapi

This commit is contained in:
Arnaud 2026-06-01 17:53:33 +04:00
parent af21d3c432
commit 8548ecebf3
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA
2 changed files with 2 additions and 2 deletions

View File

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

View File

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