mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-04-16 05:56:54 +02:00
Fixed shadowing bug
This commit is contained in:
parent
92135131a7
commit
1fb00e8045
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
|
|||
return &IPCError{Code: ipcErrorInvalidValue}
|
||||
}
|
||||
device.mutex.RLock()
|
||||
peer, _ := device.peers[pubKey]
|
||||
peer, _ = device.peers[pubKey]
|
||||
device.mutex.RUnlock()
|
||||
if peer == nil {
|
||||
peer = device.NewPeer(pubKey)
|
||||
|
|
Loading…
Add table
Reference in a new issue