Improve(fakeip): use lru cache to avoid outdate

This commit is contained in:
Dreamacro
2019-07-26 19:09:13 +08:00
parent 1702e7ddb4
commit 271ed2b9c1
9 changed files with 386 additions and 67 deletions

View File

@ -539,7 +539,7 @@ func parseDNS(cfg rawDNS) (*DNS, error) {
if err != nil {
return nil, err
}
pool, err := fakeip.New(ipnet)
pool, err := fakeip.New(ipnet, 1000)
if err != nil {
return nil, err
}