1
1
Fork 0
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:
Jeff Becker 2018-12-15 12:21:58 -05:00
parent a3e59d3481
commit d6b71c330b
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -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;