fix bug
This commit is contained in:
parent
b50326e591
commit
ddec5b49c6
@ -104,7 +104,8 @@ namespace FastGithub.ReverseProxy
|
||||
/// <returns></returns>
|
||||
private IPAddress? Resolve(string domain)
|
||||
{
|
||||
return this.memoryCache.GetOrCreate(typeof(GithubHttpClientHanlder), e =>
|
||||
var key = $"domain:{domain}";
|
||||
return this.memoryCache.GetOrCreate(key, e =>
|
||||
{
|
||||
e.SetAbsoluteExpiration(TimeSpan.FromSeconds(1d));
|
||||
return this.githubScanResults.FindBestAddress(domain);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user