v2ray-core/app/router/rules/chinaip.go

11 lines
171 B
Go
Raw Normal View History

2016-01-17 15:20:49 +00:00
package rules
2015-12-08 16:31:31 +00:00
2016-05-12 06:45:35 +00:00
//go:generate go run chinaip_gen.go
2015-12-08 16:31:31 +00:00
2016-02-01 21:30:00 +00:00
func NewChinaIPRule(tag string) *Rule {
2016-01-17 15:20:49 +00:00
return &Rule{
2016-02-01 21:30:00 +00:00
Tag: tag,
2016-01-17 15:20:49 +00:00
Condition: NewIPv4Matcher(chinaIPNet),
2016-02-01 21:30:00 +00:00
}
2015-12-08 16:31:31 +00:00
}