mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-01 01:59:07 -04:00
support range list in routing rule
This commit is contained in:
@@ -177,12 +177,12 @@ func (m *MultiGeoIPMatcher) Apply(ctx context.Context) bool {
|
||||
}
|
||||
|
||||
type PortMatcher struct {
|
||||
port net.PortRange
|
||||
port net.MemoryPortList
|
||||
}
|
||||
|
||||
func NewPortMatcher(portRange net.PortRange) *PortMatcher {
|
||||
func NewPortMatcher(list *net.PortList) *PortMatcher {
|
||||
return &PortMatcher{
|
||||
port: portRange,
|
||||
port: net.PortListFromProto(list),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user