]> tinc-vpn.org Git - tinc/blobdiff - src/mingw/device.c
Fix compiling under MinGW.
[tinc] / src / mingw / device.c
index 231a264de1ac09241c4a3e94bf877b3b0b0b57ed..b047615577d76c91c889104d410dfb8f6cf95596 100644 (file)
@@ -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)) {