Skip to content

Commit

Permalink
cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mili-tan committed Aug 1, 2020
1 parent f60f42d commit 4b7095e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Arashi.Aoi/Routes/DNSRoutes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public static void DnsQueryRoute(IEndpointRouteBuilder endpoints)
});
}

public static async void ReturnContext(HttpContext context, bool returnMsg, DnsMessage dnsMsg)
public static async void ReturnContext(HttpContext context, bool returnMsg, DnsMessage dnsMsg,
bool cache = true)
{
var queryDictionary = context.Request.Query;

Expand Down Expand Up @@ -78,7 +79,7 @@ public static async void ReturnContext(HttpContext context, bool returnMsg, DnsM
}
}

WriteLogCache(dnsMsg, context);
if (cache) WriteLogCache(dnsMsg, context);
}

public static DnsMessage DnsQuery(DnsMessage dnsMessage, HttpContext context = null)
Expand Down

0 comments on commit 4b7095e

Please sign in to comment.