summaryrefslogtreecommitdiffhomepage
path: root/tun
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-02-03 23:06:11 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2021-02-03 23:06:11 +0100
commit7a7f89b37634865e8492f5c7c30e72a8d1c58932 (patch)
tree8ef032032b5da6088a18312eefe2030ee69c2653 /tun
parent069c5ec96ad7a4bba9fa4ffb6407cea08a976f09 (diff)
parent07a9e33d76ab6389243f7f860fb7d7ab10aa8b1a (diff)
Merge branch 'tun-net-with-stack' into build
Diffstat (limited to 'tun')
-rw-r--r--tun/netstack/tun.go3
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 {