mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
use tun fd for ioctl
This commit is contained in:
parent
a3e59d3481
commit
d6b71c330b
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ tuntap_sys_start(struct device *dev, int mode, int tun)
|
|||
}
|
||||
|
||||
int set = 1;
|
||||
if(ioctl(dev->ctrl_sock, TUNSIFHEAD, &set) == -1)
|
||||
if(ioctl(dev->fd, TUNSIFHEAD, &set) == -1)
|
||||
{
|
||||
tuntap_log(TUNTAP_LOG_ERR, "ioctl for TUNSIFHEAD failed");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue