diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-02-03 23:06:02 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-02-03 23:06:02 +0100 |
commit | 07a9e33d76ab6389243f7f860fb7d7ab10aa8b1a (patch) | |
tree | 6565744f4de19cc76efe795c3dbec8682cc7f7cd /tun | |
parent | 858f933917014f710343aea93f2b643f5e05dfec (diff) |
WIP fix types
Diffstat (limited to 'tun')
-rw-r--r-- | tun/netstack/tun.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |