summaryrefslogtreecommitdiffhomepage
path: root/tun/netstack/tun.go
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-02-03 23:09:17 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2021-02-03 23:09:17 +0100
commit09e5183c2ea754497de90db0db603e80eeef0c4d (patch)
tree081a40e761a8af71734a761fab0c192e1b7105fd /tun/netstack/tun.go
parent7a7f89b37634865e8492f5c7c30e72a8d1c58932 (diff)
parent238006b0d9ec39cc7d96f5161e6b789c81923e6b (diff)
Merge branch 'tun-net-with-stack' into buildandroid
Diffstat (limited to 'tun/netstack/tun.go')
-rw-r--r--tun/netstack/tun.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go
index a53444c..d24274d 100644
--- a/tun/netstack/tun.go
+++ b/tun/netstack/tun.go
@@ -185,7 +185,7 @@ func convertToFullAddr(ip net.IP, port int, zone string) (tcpip.FullAddress, tcp
var nic tcpip.NICID = 0
if zone != "" {
- zoneId, _ = strconv.Atoi(zone)
+ zoneId, _ := strconv.Atoi(zone)
nic = tcpip.NICID(zoneId)
}