summaryrefslogtreecommitdiffhomepage
path: root/tun/netstack/tun.go
diff options
context:
space:
mode:
Diffstat (limited to 'tun/netstack/tun.go')
-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 {