mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-12 22:58:58 +00:00
Feat: sniffer exclude domain & ip
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/xtls/xray-core/common/matcher/geosite"
|
||||
)
|
||||
|
||||
func ParaseDomainRule(domain string) ([]*dm.Domain, error) {
|
||||
func ParseDomainRule(domain string) ([]*dm.Domain, error) {
|
||||
if strings.HasPrefix(domain, "geosite:") {
|
||||
country := strings.ToUpper(domain[8:])
|
||||
domains, err := geosite.LoadGeositeWithAttr("geosite.dat", country)
|
||||
|
||||
Reference in New Issue
Block a user