X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fmingw%2Fdevice.c;h=b77282ad9c1771814be74a7ffaea47a47359ed9c;hp=49b833abbe708f440aaf7af2307e676b22b1ffb2;hb=2f03a5d;hpb=48fb63f9c2bc0b838c1f3684cfc230c143bef11f diff --git a/src/mingw/device.c b/src/mingw/device.c index 49b833ab..b77282ad 100644 --- a/src/mingw/device.c +++ b/src/mingw/device.c @@ -113,6 +113,9 @@ static bool setup_device(void) { get_config_string(lookup_config(config_tree, "Device"), &device); get_config_string(lookup_config(config_tree, "Interface"), &iface); + if(device && interface) + logger(LOG_WARNING, "Warning: both Device and Interface specified, results may not be as expected"); + /* Open registry and look for network adapters */ if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, NETWORK_CONNECTIONS_KEY, 0, KEY_READ, &key)) {