aboutsummaryrefslogtreecommitdiffstats
path: root/tun
diff options
context:
space:
mode:
Diffstat (limited to 'tun')
-rw-r--r--tun/tun_openbsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/tun_openbsd.go b/tun/tun_openbsd.go
index 2003420..460daff 100644
--- a/tun/tun_openbsd.go
+++ b/tun/tun_openbsd.go
@@ -124,7 +124,7 @@ func CreateTUN(name string, mtu int) (Device, error) {
if ifIndex != -1 {
tunfile, err = os.OpenFile(fmt.Sprintf("/dev/tun%d", ifIndex), unix.O_RDWR, 0)
} else {
- for ifIndex = 0; ifIndex < 256; ifIndex += 1 {
+ for ifIndex = 0; ifIndex < 256; ifIndex++ {
tunfile, err = os.OpenFile(fmt.Sprintf("/dev/tun%d", ifIndex), unix.O_RDWR, 0)
if err == nil || !errorIsEBUSY(err) {
break