Introduce max relay config

This commit is contained in:
Arnaud 2026-04-22 12:19:26 +04:00
parent ac01e7cc2a
commit e1aa7958c1
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA

View File

@ -336,6 +336,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")