X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fbsd%2Fdevice.c;h=cb65dbbf307484d1cd9c4dc5fdbe832c1bc3d278;hp=0e795dd06e31b22ba0a9bcca03f628f45aadc85b;hb=a649aa51bf8e5b5fcc76061c9f660122a08245a8;hpb=053925efebf466b5866de12434010c1e8127c172 diff --git a/src/bsd/device.c b/src/bsd/device.c index 0e795dd0..cb65dbbf 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -73,6 +73,15 @@ static bool setup_device(void) { } if(!get_config_string(lookup_config(config_tree, "Interface"), &iface)) + iface = NULL; +#ifndef TAPGIFNAME + if (iface) { + logger(DEBUG_ALWAYS, LOG_WARNING, "Ignoring specified interface name '%s' as device rename is not supported on this platform", iface); + free(iface); + iface = NULL; + } +#endif + if (!iface) iface = xstrdup(strrchr(device, '/') ? strrchr(device, '/') + 1 : device); if(get_config_string(lookup_config(config_tree, "DeviceType"), &type)) {