X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fbsd%2Fdevice.c;h=377d4a7b2fff3daaeb9542ed68554b54ba00600d;hb=c40c99592b9512049e85323c59432a380239151f;hp=3e9cfb271407f23885711f736fd21be9385ec746;hpb=29a95c30e9fc2533227250a0f669d165316b72cf;p=tinc diff --git a/src/bsd/device.c b/src/bsd/device.c index 3e9cfb27..377d4a7b 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -75,6 +75,8 @@ static bool setup_device(void) { if(!get_config_string(lookup_config(config_tree, "Interface"), &iface)) iface = xstrdup(strrchr(device, '/') ? strrchr(device, '/') + 1 : device); + else if(strcmp(iface, strrchr(device, '/') ? strrchr(device, '/') + 1 : device)) + logger(LOG_WARNING, "Warning: Interface does not match Device. $INTERFACE might be set incorrectly."); if(get_config_string(lookup_config(config_tree, "DeviceType"), &type)) { if(!strcasecmp(type, "tun"))