mirror of
https://github.com/markqvist/tncattach.git
synced 2025-07-30 12:32:25 -04:00
TAP
- Cleaned up
This commit is contained in:
parent
6c83aa468b
commit
6635336405
4
TAP.c
4
TAP.c
@ -97,9 +97,7 @@ int open_tap(void) {
|
|||||||
|
|
||||||
int inet = socket(AF_INET, SOCK_DGRAM, 0);
|
int inet = socket(AF_INET, SOCK_DGRAM, 0);
|
||||||
if (inet == -1) {
|
if (inet == -1) {
|
||||||
char err[100];
|
perror("Could not open control socket");
|
||||||
sprintf(err, "Could not open %s socket", set_ipv4 ? "AF_INET" : "AF_INET6");
|
|
||||||
perror(err);
|
|
||||||
cleanup();
|
cleanup();
|
||||||
exit(1);
|
exit(1);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user