axihttp DNS线程安全
This commit is contained in:
parent
2356fd7448
commit
224e0d1126
@ -165,6 +165,8 @@ public static class AxiHttp
|
||||
}
|
||||
|
||||
public static IPAddress GetDnsIP(string str)
|
||||
{
|
||||
lock (dictIP2Address)
|
||||
{
|
||||
if (!dictIP2Address.ContainsKey(str))
|
||||
{
|
||||
@ -181,6 +183,7 @@ public static class AxiHttp
|
||||
}
|
||||
return dictIP2Address[str];
|
||||
}
|
||||
}
|
||||
|
||||
public enum AxiDownLoadMode
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user