Use 198.18.0.0/16 as default Fake IP Pool (#377)

This commit is contained in:
Jim Han 2021-03-14 23:58:27 +08:00 committed by GitHub
parent e0526c27b3
commit 3fe85449a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 6 deletions

View file

@ -3,6 +3,7 @@ package conf
import (
"github.com/golang/protobuf/proto"
"github.com/xtls/xray-core/app/dns/fakedns"
"github.com/xtls/xray-core/features/dns"
)
type FakeDNSConfig struct {
@ -36,7 +37,7 @@ func (FakeDNSPostProcessingStage) Process(conf *Config) error {
if conf.FakeDNS == nil {
// Add a Fake DNS Config if there is none
conf.FakeDNS = &FakeDNSConfig{
IPPool: "240.0.0.0/8",
IPPool: dns.FakeIPPool,
LruSize: 65535,
}
}