diff options
| -rw-r--r-- | executor/common_bsd.h | 2 | ||||
| -rw-r--r-- | pkg/csource/generated.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 131ab0764..d250c5f29 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -209,7 +209,7 @@ static void initialize_tun(int tun_id) execute_command(0, "ifconfig %s destroy", tun_iface); execute_command(0, "ifconfig %s create", tun_iface); #else - execute_command(0, "ifconfig %s destroy", tun_device); + execute_command(0, "ifconfig %s destroy", tun_iface); #endif tunfd = open(tun_device, O_RDWR | O_NONBLOCK); diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index ee9517117..266ce6597 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -1734,7 +1734,7 @@ static void initialize_tun(int tun_id) execute_command(0, "ifconfig %s destroy", tun_iface); execute_command(0, "ifconfig %s create", tun_iface); #else - execute_command(0, "ifconfig %s destroy", tun_device); + execute_command(0, "ifconfig %s destroy", tun_iface); #endif tunfd = open(tun_device, O_RDWR | O_NONBLOCK); |
