mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-23 05:43:32 +02:00
use dns0 on linux
This commit is contained in:
parent
efe4b99e06
commit
ba2abc6e69
1 changed files with 1 additions and 1 deletions
2
tun.c
2
tun.c
|
@ -56,7 +56,7 @@ open_tun()
|
|||
ifreq.ifr_flags = IFF_TUN;
|
||||
|
||||
for (i = 0; i < TUN_MAX_TRY; i++) {
|
||||
snprintf(ifreq.ifr_name, IFNAMSIZ, "tun%d", i);
|
||||
snprintf(ifreq.ifr_name, IFNAMSIZ, "dns%d", i);
|
||||
|
||||
if (ioctl(tun_fd, TUNSETIFF, (void *) &ifreq) != -1) {
|
||||
printf("opened %s\n", ifreq.ifr_name);
|
||||
|
|
Loading…
Reference in a new issue