DnsServerInternal: updated DirectQueryAsync() implementation.

This commit is contained in:
Shreyas Zare
2022-01-23 17:04:48 +05:30
parent 3db2f8229d
commit 2f81252ffb

View File

@@ -1,6 +1,6 @@
/*
Technitium DNS Server
Copyright (C) 2021 Shreyas Zare (shreyas@technitium.com)
Copyright (C) 2022 Shreyas Zare (shreyas@technitium.com)
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
@@ -48,9 +48,9 @@ namespace DnsServerCore.Dns.Applications
#region public
public Task<DnsDatagram> DirectQueryAsync(DnsQuestionRecord question)
public Task<DnsDatagram> DirectQueryAsync(DnsQuestionRecord question, int timeout = 4000)
{
return _dnsServer.DirectQueryAsync(question, true);
return _dnsServer.DirectQueryAsync(question, timeout, true);
}
public void WriteLog(string message)