X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fcygwin%2Fdevice.c;h=47867a493e8edbb87bfcf53ded1c4ba3a11cfb09;hp=b582a6a962c99be9fb729af0b6f5d1f8fa60ea22;hb=2f03a5d94c0bb6732fd65263217e3aa2b72f18ff;hpb=48fb63f9c2bc0b838c1f3684cfc230c143bef11f;ds=sidebyside diff --git a/src/cygwin/device.c b/src/cygwin/device.c index b582a6a9..47867a49 100644 --- a/src/cygwin/device.c +++ b/src/cygwin/device.c @@ -61,6 +61,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)) {