0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 11:29:36 +03:00

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
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,
}
}