Introduce max relay config

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

View File

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