Minor bug fixes

This commit is contained in:
jdl
2026-06-14 05:30:59 +02:00
parent c45ac83eb0
commit 992eabc0e9
3 changed files with 3 additions and 3 deletions

View File

@@ -204,7 +204,7 @@ func (a *API) Peer_Init(peer *Peer, args m.PeerInitArgs) error {
// we held the lock, so it may be stale under concurrent requests.
current, err := db.Peer_Get(a.db, peer.NetworkID, peer.PeerIP)
if err != nil {
return err
return errs.DB(err)
}
if len(current.WGPubKey) != 0 {
return errs.ErrAlreadyExists