Skip to content

Commit

Permalink
Fix Daita code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Nov 14, 2024
1 parent 29e08b0 commit 9c6b227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wireguard-go-rs/libwg/libwg_daita.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func wgActivateDaita(tunnelHandle C.int32_t, peerPubkey *C.uint8_t, machines *C.
var publicKey device.NoisePublicKey
copy(publicKey[:], C.GoBytes(unsafe.Pointer(peerPubkey), device.NoisePublicKeySize))

var peer
var peer *device.Peer
if tunnel.EntryDevice != nil {
// TODO: Document me
peer = tunnel.EntryDevice.LookupPeer(publicKey)
Expand Down

0 comments on commit 9c6b227

Please sign in to comment.