mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-12 22:39:26 +00:00
Add relay config
This commit is contained in:
parent
e48ca913a9
commit
4a4941a593
@ -319,6 +319,12 @@ type
|
||||
name: "nat-max-relays"
|
||||
.}: int
|
||||
|
||||
relay* {.
|
||||
desc: "Enable circuit relay server (hop) - use on publicly reachable nodes only",
|
||||
defaultValue: false,
|
||||
name: "relay"
|
||||
.}: bool
|
||||
|
||||
func defaultAddress*(conf: StorageConf): IpAddress =
|
||||
result = static parseIpAddress("127.0.0.1")
|
||||
|
||||
|
||||
@ -198,7 +198,7 @@ proc new*(
|
||||
## create StorageServer including setting up datastore, repostore, etc
|
||||
let listenMultiAddr = getMultiAddrWithIpAndTcpPort(config.listenIp, config.listenPort)
|
||||
|
||||
let relayClient = relayClientModule.RelayClient.new()
|
||||
let relayClient = relayClientModule.RelayClient.new(canHop = config.relay)
|
||||
|
||||
let autonatClient = AutonatV2Client.new(random.Rng.instance())
|
||||
let autonatService = AutonatV2Service.new(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user