mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-06 08:45:32 +00:00
DnsServerInternal: updated DirectQueryAsync() implementation.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user