From 5e684550a87828edac22cc523406a5c5c92e1efa Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Sun, 18 Jun 2023 15:45:04 +0100 Subject: [PATCH] Take interface in `tun.New` --- src/tun/tun.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tun/tun.go b/src/tun/tun.go index 5768461d..7964ab9d 100644 --- a/src/tun/tun.go +++ b/src/tun/tun.go @@ -17,7 +17,6 @@ import ( "github.com/yggdrasil-network/yggdrasil-go/src/address" "github.com/yggdrasil-network/yggdrasil-go/src/config" "github.com/yggdrasil-network/yggdrasil-go/src/core" - "github.com/yggdrasil-network/yggdrasil-go/src/ipv6rwc" ) type MTU uint16 @@ -98,7 +97,7 @@ func MaximumMTU() uint64 { // Init initialises the TUN module. You must have acquired a Listener from // the Yggdrasil core before this point and it must not be in use elsewhere. -func New(rwc *ipv6rwc.ReadWriteCloser, log core.Logger, opts ...SetupOption) (*TunAdapter, error) { +func New(rwc ReadWriteCloser, log core.Logger, opts ...SetupOption) (*TunAdapter, error) { tun := &TunAdapter{ rwc: rwc, log: log,