X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fbsd%2Fdevice.c;h=377d4a7b2fff3daaeb9542ed68554b54ba00600d;hp=3e9cfb271407f23885711f736fd21be9385ec746;hb=2f03a5d94c0bb6732fd65263217e3aa2b72f18ff;hpb=48fb63f9c2bc0b838c1f3684cfc230c143bef11f 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"))