mirror of
https://github.com/markqvist/tncattach.git
synced 2025-06-28 22:45:20 -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);
|
||||
if (inet == -1) {
|
||||
char err[100];
|
||||
sprintf(err, "Could not open %s socket", set_ipv4 ? "AF_INET" : "AF_INET6");
|
||||
perror(err);
|
||||
perror("Could not open control socket");
|
||||
cleanup();
|
||||
exit(1);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user