mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-29 17:19:07 -04:00
Fix lint according to golangci-lint (#439)
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
|
||||
"go.starlark.net/starlark"
|
||||
"go.starlark.net/syntax"
|
||||
|
||||
"v2ray.com/core/common/net"
|
||||
"v2ray.com/core/common/strmatcher"
|
||||
"v2ray.com/core/features/routing"
|
||||
@@ -154,9 +153,8 @@ func NewPortMatcher(list *net.PortList, onSource bool) *PortMatcher {
|
||||
func (v *PortMatcher) Apply(ctx routing.Context) bool {
|
||||
if v.onSource {
|
||||
return v.port.Contains(ctx.GetSourcePort())
|
||||
} else {
|
||||
return v.port.Contains(ctx.GetTargetPort())
|
||||
}
|
||||
return v.port.Contains(ctx.GetTargetPort())
|
||||
}
|
||||
|
||||
type NetworkMatcher struct {
|
||||
|
||||
Reference in New Issue
Block a user