fix: do not reload geoip/geosite when reloading ruleset to prevent leaking references to streams

This commit is contained in:
Toby
2024-04-10 21:30:37 -07:00
parent 5f447d4e31
commit 107e29ee20
3 changed files with 10 additions and 12 deletions

View File

@@ -7,6 +7,7 @@ import (
"github.com/apernet/OpenGFW/analyzer"
"github.com/apernet/OpenGFW/modifier"
"github.com/apernet/OpenGFW/ruleset/builtins/geo"
)
type Action int
@@ -102,7 +103,6 @@ type Logger interface {
type BuiltinConfig struct {
Logger Logger
GeoSiteFilename string
GeoIpFilename string
GeoMatcher *geo.GeoMatcher
ProtectedDialContext func(ctx context.Context, network, address string) (net.Conn, error)
}