mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-03 19:54:22 +08:00
fix nil point error on join
This commit is contained in:
parent
a1304b43d8
commit
d91cd15e5a
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ func CheckNetRegAndHostUpdate(networks []string, h *models.Host, relayNodeId uui
|
|||
slog.Error("failed to relay node. maybe specified relay node is actually not a relay? Or the relayed node is not in the same network with relay?", "err", err)
|
||||
}
|
||||
}
|
||||
if strings.Contains(err.Error(), "host already part of network") {
|
||||
if err != nil && strings.Contains(err.Error(), "host already part of network") {
|
||||
continue
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue