Fix static peer on Ygg demo build

main
Neil Alexander 2020-07-07 14:38:59 +01:00
parent b21fad92e5
commit d03f6ac725
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ func main() {
panic(err) panic(err)
} }
ygg.SetMulticastEnabled(true) ygg.SetMulticastEnabled(true)
if instancePeer != nil && *instancePeer != "" {
ygg.SetStaticPeer(*instancePeer)
}
cfg := &config.Dendrite{} cfg := &config.Dendrite{}
cfg.SetDefaults() cfg.SetDefaults()