Merge pull request #1309 from iot-lab/tunslip_tun_conflict
Fix default tun/tap issue with multiple tunslip6
This commit is contained in:
commit
c7bb3b7b9f
|
@ -884,14 +884,6 @@ exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(*tundev == '\0') {
|
|
||||||
/* Use default. */
|
|
||||||
if(tap) {
|
|
||||||
strcpy(tundev, "tap0");
|
|
||||||
} else {
|
|
||||||
strcpy(tundev, "tun0");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(host != NULL) {
|
if(host != NULL) {
|
||||||
struct addrinfo hints, *servinfo, *p;
|
struct addrinfo hints, *servinfo, *p;
|
||||||
int rv;
|
int rv;
|
||||||
|
|
Loading…
Reference in a new issue