diff --git a/src/libcharon/plugins/windows_dns/windows_dns_handler.c b/src/libcharon/plugins/windows_dns/windows_dns_handler.c index acf87153135..2445b3fc4a7 100644 --- a/src/libcharon/plugins/windows_dns/windows_dns_handler.c +++ b/src/libcharon/plugins/windows_dns/windows_dns_handler.c @@ -212,7 +212,7 @@ static int GetTapAdapterInfo( IWbemServices *pSvc, int *iface_idx, wchar_t *dns1 { // Allocate our strings language = SysAllocString( L"WQL" ); - query = SysAllocString( L"SELECT * FROM Win32_NetworkAdapterConfiguration where Description LIKE 'Sophos TAP Adapter'" ); + query = SysAllocString( L"SELECT * FROM Win32_NetworkAdapterConfiguration where Description LIKE 'Sophos TAP Adapter%'" ); // Get the current DNS servers list for our adapter hres = pSvc->lpVtbl->ExecQuery( pSvc, language, query, WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, NULL, &pEnumerator );