Merge pull request #586 from g-oikonomou/bugfix/tools/tunslip6-macos
Specify default tun/tap name on Mac OS
This commit is contained in:
commit
98c6580e6f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user