Merge pull request #586 from g-oikonomou/bugfix/tools/tunslip6-macos

Specify default tun/tap name on Mac OS
This commit is contained in:
Simon Duquennoy 2018-06-26 12:27:59 +02:00 committed by GitHub
commit 98c6580e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -885,6 +885,17 @@ exit(1);
}
}
#ifdef __APPLE__
if(*tundev == '\0') {
/* Use default. */
if(tap) {
strcpy(tundev, "tap0");
} else {
strcpy(tundev, "tun0");
}
}
#endif
if(host != NULL) {
struct addrinfo hints, *servinfo, *p;
int rv;