From 2c8d84a3c94cbbe70f3d0443d40b5f3f95d69e54 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Fri, 22 Jan 2021 12:44:18 +0100 Subject: WIP adapt to changed tunstack --- tun/netstack/tun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tun') diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go index 671e865..6efa45f 100644 --- a/tun/netstack/tun.go +++ b/tun/netstack/tun.go @@ -100,7 +100,7 @@ func CreateNetTUN(localAddresses []net.IP, dnsServers []net.IP, mtu int) (tun.De return CreateNetTUNWithStack(stack.New(opts), 1, localAddresses, dnsServers, mtu) } -func CreateNetTUNWithStack(stack *stack.Stack, nicID tcpip.NICID, localAddresses []net.IP, dnsServers []net.IP, mtu int) (Device, *Net, error) { +func CreateNetTUNWithStack(stack *stack.Stack, nicID tcpip.NICID, localAddresses []net.IP, dnsServers []net.IP, mtu int) (tun.Device, *Net, error) { dev := &netTun{ stack: stack, nicID: nicID, -- cgit v1.2.3