mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-07-01 23:09:30 +00:00
Add relay config
This commit is contained in:
parent
50c708ade1
commit
7838baa27d
@ -342,6 +342,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