diff --git a/src/core/link.go b/src/core/link.go index 0b2efc57..e42f127f 100644 --- a/src/core/link.go +++ b/src/core/link.go @@ -273,7 +273,7 @@ func (l *links) add(u *url.URL, sintf string, linkType linkType) error { } conn, err := l.connect(state.ctx, u, info, options) - if err != nil { + if err != nil || conn == nil { if linkType == linkTypePersistent { // If the link is a persistent configured peering, // store information about the connection error so