diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-02-03 23:06:11 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2021-02-03 23:06:11 +0100 |
commit | 7a7f89b37634865e8492f5c7c30e72a8d1c58932 (patch) | |
tree | 8ef032032b5da6088a18312eefe2030ee69c2653 /tun/netstack/tun.go | |
parent | 069c5ec96ad7a4bba9fa4ffb6407cea08a976f09 (diff) | |
parent | 07a9e33d76ab6389243f7f860fb7d7ab10aa8b1a (diff) |
Merge branch 'tun-net-with-stack' into build
Diffstat (limited to 'tun/netstack/tun.go')
-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 8f5ae6e..a53444c 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 { |