Skip to content

Commit

Permalink
error if wg key generation is unsuccessful
Browse files Browse the repository at this point in the history
  • Loading branch information
pfandzelter authored Jan 11, 2024
1 parent 40250e8 commit 597d98b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/orchestrator/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ func (o *Orchestrator) SetPeerID(id uint64) error {

o.ownHost.publickey, err = initPeering(o.ownHost.wgAddr.String())

log.Debugf("Peering initialized: ID %d, public key %s", o.ownID, o.ownHost.publickey)

if err != nil {
return nil
return errors.WithStack(err)
}

return errors.WithStack(err)
log.Debugf("Peering initialized: ID %d, public key %s", o.ownID, o.ownHost.publickey)

return nil
}

func (o *Orchestrator) InitRemotes(addr []string) error {
Expand Down

0 comments on commit 597d98b

Please sign in to comment.