Skip to content
Snippets Groups Projects
Commit 85ae1e5e authored by Aleksei Voronin's avatar Aleksei Voronin
Browse files

[*] fixed node freeze if user have no permissions to work with tun-device

parent 397df032
No related branches found
No related tags found
3 merge requests!82Bugs 3815,!80Bugs 3815,!79Bugs 3815
......@@ -449,6 +449,7 @@ static void s_tun_create(void)
log_it(L_CRITICAL, "ioctl(TUNSETIFF) error: '%s' ", strerror(errno));
close(s_raw_server->tun_ctl_fd);
s_raw_server->tun_ctl_fd = -1;
s_raw_server->tun_fd = -1;
} else {
char buf[256];
log_it(L_NOTICE, "Bringed up %s virtual network interface (%s/%s)", s_raw_server->ifr.ifr_name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment