node: New relay configuration for nodes

Relay now has three values: "always", "never" and "auto".

The first two operate like the previous `true`/`false`. The
new (default) value turns relaying on for nodes with public (external)
addresses and off for nodes without. This should reduce redundant traffic on
the network, that was causing the rate limiters to trigger.
This commit is contained in:
cloudhead
2024-05-02 11:45:29 +02:00
parent 2c64b36291
commit bddfaeec80
+1 -1
View File
@@ -92,7 +92,7 @@ mod routes {
"tor": null,
"network": "main",
"log": "INFO",
"relay": true,
"relay": "auto",
"limits": {
"routingMaxSize": 1000,
"routingMaxAge": 604800,