X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fcygwin%2Fdevice.c;h=b04a7478d326518f16b9aa97bb52d7d5ebadbf29;hp=4c3a60d99583623b80b91fc1c63424b419cc01be;hb=1ceea259c3ba5efb9b8b12161e75256270ba4804;hpb=6b92ac505d2cd5c7e390d49bf1f0b399ef9f8327 diff --git a/src/cygwin/device.c b/src/cygwin/device.c index 4c3a60d9..b04a7478 100644 --- a/src/cygwin/device.c +++ b/src/cygwin/device.c @@ -59,6 +59,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)) {