mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-23 10:05:08 +00:00
use dns0 on linux
This commit is contained in:
parent
efe4b99e06
commit
ba2abc6e69
2
tun.c
2
tun.c
@ -56,7 +56,7 @@ open_tun()
|
|||||||
ifreq.ifr_flags = IFF_TUN;
|
ifreq.ifr_flags = IFF_TUN;
|
||||||
|
|
||||||
for (i = 0; i < TUN_MAX_TRY; i++) {
|
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) {
|
if (ioctl(tun_fd, TUNSETIFF, (void *) &ifreq) != -1) {
|
||||||
printf("opened %s\n", ifreq.ifr_name);
|
printf("opened %s\n", ifreq.ifr_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user