Thanks for the patch. That's a nice bug you found. I fixed things slightly differently, but mentioned you in the commit: https://git.zx2c4.com/wireguard-go/commit/?id=8246d251ea9b9cbef07082bd69280a8f988cec0c