mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
Update resolver.go
This commit is contained in:
@@ -100,8 +100,7 @@ func (r *Resolver) Resolve(request []byte) ([]byte, error) {
|
||||
func NewResolver(a, h, b string) (*Resolver, error) {
|
||||
_, ipnet, _ := net.ParseCIDR(dnsFakeIPRange)
|
||||
|
||||
// fake ip should start with "198.18.0.3".
|
||||
pool, err := F.New(ipnet, 3, dnsCacheSize)
|
||||
pool, err := F.New(ipnet, dnsCacheSize)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user