X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fcygwin%2Fdevice.c;h=9fce9beb904aac749261f56926bc16450cdec277;hp=b582a6a962c99be9fb729af0b6f5d1f8fa60ea22;hb=4a5c12ec97fa1e82aae2d327fdc648e5203eb478;hpb=68f4ca711593416d0defd81199b176ba604c6cb1 diff --git a/src/cygwin/device.c b/src/cygwin/device.c index b582a6a9..9fce9beb 100644 --- a/src/cygwin/device.c +++ b/src/cygwin/device.c @@ -1,7 +1,7 @@ /* device.c -- Interaction with Windows tap driver in a Cygwin environment Copyright (C) 2002-2005 Ivo Timmermans, - 2002-2011 Guus Sliepen + 2002-2016 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,6 +19,7 @@ */ #include "../system.h" +#include "../net.h" #include #include @@ -26,7 +27,6 @@ #include "../conf.h" #include "../device.h" #include "../logger.h" -#include "../net.h" #include "../route.h" #include "../utils.h" #include "../xalloc.h" @@ -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 && 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)) {