This commit is contained in:
Neil Alexander 2020-07-08 17:28:16 +01:00
parent 6bee6e77d9
commit a5a51b4141
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -62,7 +62,7 @@ func main() {
}
ygg.SetMulticastEnabled(true)
if instancePeer != nil && *instancePeer != "" {
if err := ygg.SetStaticPeer(*instancePeer); err != nil {
if err = ygg.SetStaticPeer(*instancePeer); err != nil {
logrus.WithError(err).Error("Failed to set static peer")
}
}