]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: make allowedips generic jd/generic-aip
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 17 Mar 2022 01:34:42 +0000 (19:34 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 17 Mar 2022 01:45:10 +0000 (19:45 -0600)
commitf3aff443a6e829519c4144b8c523d1335a8e66ef
tree437fe987b6f95965009ab6d876670777246a07be
parent95b48cdb3961e69cb1f54a9257e02fa7014339b3
device: make allowedips generic

The implementation of commonBits uses a horrific unsafe.Slice trick.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/allowedips.go
device/allowedips_rand_test.go
device/allowedips_test.go