added delay before announce for TCP readiness

The announce was firing before the TCP transport connection was fully
established, causing Docker instances to never announce over the mesh.
This commit is contained in:
blankie 2026-03-26 21:32:11 -07:00
parent c947cd1e16
commit 3ed73bdcf5

2
app.py
View file

@ -93,6 +93,8 @@ def main():
allow=RNS.Destination.ALLOW_ALL, allow=RNS.Destination.ALLOW_ALL,
) )
# Brief delay to ensure all interfaces (especially TCP) are fully ready
time.sleep(2)
destination.announce() destination.announce()
set_setting("dest_hash", destination.hash.hex()) set_setting("dest_hash", destination.hash.hex())
start_gateway(reticulum) start_gateway(reticulum)