mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-17 21:30:25 -04:00
Node announce handling.
This commit is contained in:
parent
d54483d7e3
commit
f0fae68e31
2 changed files with 7 additions and 9 deletions
|
@ -327,12 +327,12 @@ class NomadNetworkApp:
|
|||
if not "announce_at_start" in self.config["node"]:
|
||||
self.node_announce_at_start = False
|
||||
else:
|
||||
self.node_announce_at_start = self.config["announce_at_start"].as_bool("announce_at_start")
|
||||
self.node_announce_at_start = self.config["node"]["announce_at_start"]
|
||||
|
||||
if not "announce_interval" in self.config["node"]:
|
||||
self.node_announce_interval = 720
|
||||
else:
|
||||
value = self.config["announce_interval"].as_int("announce_interval")
|
||||
value = self.config["node"].as_int("announce_interval")
|
||||
if value < 1:
|
||||
value = 1
|
||||
self.node_announce_interval = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue