X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fmingw%2Fdevice.c;h=cc65264fa99b374374d380ea48bd3dc942aef511;hb=e355088535ee9ebb12a4db0043bf6a9743085b28;hp=231a264de1ac09241c4a3e94bf877b3b0b0b57ed;hpb=3def9d2ad88a9015af4c42aac329e0e2a80679f7;p=tinc diff --git a/src/mingw/device.c b/src/mingw/device.c index 231a264d..cc65264f 100644 --- a/src/mingw/device.c +++ b/src/mingw/device.c @@ -101,6 +101,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 && iface) + 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)) {