From 07a9e33d76ab6389243f7f860fb7d7ab10aa8b1a Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 3 Feb 2021 23:06:02 +0100 Subject: WIP fix types --- tun/netstack/tun.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go index 21f7cd5..dc7c142 100644 --- a/tun/netstack/tun.go +++ b/tun/netstack/tun.go @@ -185,7 +185,8 @@ func convertToFullAddr(ip net.IP, port int, zone string) (tcpip.FullAddress, tcp var nic tcpip.NICID = 0 if zone != "" { - nic, _ = strconv.Atoi(zone) + zoneId, _ = strconv.Atoi(zone) + nic = tcpip.NICID(zoneId) } if ip4 := ip.To4(); ip4 != nil { -- cgit v1.2.3