From d03f6ac72590f312d14aff7495beceda9ba03d1b Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 7 Jul 2020 14:38:59 +0100 Subject: [PATCH] Fix static peer on Ygg demo build --- cmd/dendrite-demo-yggdrasil/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/dendrite-demo-yggdrasil/main.go b/cmd/dendrite-demo-yggdrasil/main.go index c9e0c58d..b2d40f4f 100644 --- a/cmd/dendrite-demo-yggdrasil/main.go +++ b/cmd/dendrite-demo-yggdrasil/main.go @@ -59,6 +59,9 @@ func main() { panic(err) } ygg.SetMulticastEnabled(true) + if instancePeer != nil && *instancePeer != "" { + ygg.SetStaticPeer(*instancePeer) + } cfg := &config.Dendrite{} cfg.SetDefaults()