Minor bug fixes

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

No files matched your search

+1 -1
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