Revert "TUN_OFFSET_BYTES per platform"

This reverts commit 85c5bc61ac.
This commit is contained in:
Neil Alexander 2019-11-24 21:09:29 +00:00
parent 85c5bc61ac
commit 8f323b740d
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
6 changed files with 3 additions and 11 deletions

View file

@ -9,8 +9,6 @@ import (
wgtun "golang.zx2c4.com/wireguard/tun"
)
const TUN_OFFSET_BYTES = 0
// Configures the TUN adapter with the correct IPv6 address and MTU.
func (tun *TunAdapter) setup(ifname string, addr string, mtu int) error {
iface, err := wgtun.CreateTUN(ifname, mtu)