Treat virtual network device as tap if Mode = switch or hub.

On OpenBSD, the link0 flag should still be set in tinc-up or by other means.
This commit is contained in:
Guus Sliepen 2008-12-21 16:19:31 +00:00
parent 38c2d6c1da
commit a269ec4193

View file

@ -78,7 +78,7 @@ bool setup_device(void) {
return false;
}
} else {
if(strstr(device, "tap"))
if(strstr(device, "tap") || routing_mode != RMODE_ROUTER)
device_type = DEVICE_TYPE_TAP;
}