From 2f865d5c8a11966ab11e777bc0b67a999fa07126 Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Fri, 17 Nov 2023 19:53:52 +0330 Subject: [PATCH] Add geo asset path --- shared/config.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/shared/config.go b/shared/config.go index 07b2974..7683b2c 100644 --- a/shared/config.go +++ b/shared/config.go @@ -37,6 +37,8 @@ type ConfigOptions struct { BypassLAN bool `json:"bypass-lan"` EnableFakeDNS bool `json:"enable-fake-dns"` IndependentDNSCache bool `json:"independent-dns-cache"` + GeoIPPath string `json:"geoip-path"` + GeoSitePath string `json:"geosite-path"` Rules []Rule `json:"rules"` } @@ -331,6 +333,12 @@ func BuildConfig(configOpt ConfigOptions, input option.Options) option.Options { Rules: routeRules, AutoDetectInterface: true, OverrideAndroidVPN: true, + GeoIP: &option.GeoIPOptions{ + Path: configOpt.GeoIPPath, + }, + Geosite: &option.GeositeOptions{ + Path: configOpt.GeoSitePath, + }, } var outbounds []option.Outbound