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