1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-19 10:56:06 -05:00
v2fly/app/router/rules/chinaip.go

11 lines
171 B
Go
Raw Normal View History

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