From bc05f8154d135fab7cedd68c035129aa8112efdc Mon Sep 17 00:00:00 2001 From: Arnaud Date: Wed, 22 Apr 2026 12:19:26 +0400 Subject: [PATCH] Introduce max relay config --- storage/conf.nim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/storage/conf.nim b/storage/conf.nim index 406615e7..af9e871e 100644 --- a/storage/conf.nim +++ b/storage/conf.nim @@ -313,6 +313,12 @@ type name: "nat-min-confidence" .}: float + natMaxRelays* {. + desc: "Maximum number of relay servers to reserve slots on simultaneously", + defaultValue: 2, + name: "nat-max-relays" + .}: int + func defaultAddress*(conf: StorageConf): IpAddress = result = static parseIpAddress("127.0.0.1")