This commit is contained in:
mzz2017 2023-02-18 23:09:06 +08:00
parent cd588d017d
commit 500248ea5c
3 changed files with 7 additions and 1 deletions

View File

@ -283,6 +283,7 @@ func NewControlPlane(
); err != nil {
return nil, fmt.Errorf("ApplyRulesOptimizers error:\n%w", err)
}
routingA.Rules = nil // Release.
if log.IsLevelEnabled(logrus.DebugLevel) {
var debugBuilder strings.Builder
for _, rule := range rules {

View File

@ -255,6 +255,9 @@ func (b *RoutingMatcherBuilder) BuildKernspace() (err error) {
}); err != nil {
return fmt.Errorf("BpfMapBatchUpdate: %w", err)
}
// Release.
b.simulatedLpmTries = nil
return nil
}
@ -280,5 +283,7 @@ func (b *RoutingMatcherBuilder) BuildUserspace() (matcher *RoutingMatcher, err e
}
m.matches = b.rules
// Release.
b.simulatedDomainSet = nil
return &m, nil
}

View File

@ -28,7 +28,7 @@ global {
# Please make sure DNS traffic will go through and be forwarded by dae, which is REQUIRED for domain routing.
# The upstream DNS answer MUST NOT be polluted, so domestic public DNS is not recommended.
# The request to DNS upstream follows the routing defined below.
dns_upstream: 'tcp+udp://dns.google:53'
dns_upstream: 'udp://dns.alidns.com:53'
# The LAN interface to bind. Use it if you only want to proxy LAN instead of localhost.
# Multiple interfaces split by ",".