X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fmingw%2Fdevice.c;h=b047615577d76c91c889104d410dfb8f6cf95596;hp=231a264de1ac09241c4a3e94bf877b3b0b0b57ed;hb=491839a81aba00d4af50b66563cedaac4fa7028c;hpb=3def9d2ad88a9015af4c42aac329e0e2a80679f7 diff --git a/src/mingw/device.c b/src/mingw/device.c index 231a264d..b0476155 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(DEBUG_ALWAYS, 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)) {