From fda93579f0e2c864571d130a9e853215984c8719 Mon Sep 17 00:00:00 2001 From: HynoR <20227709+HynoR@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:51:36 +0800 Subject: [PATCH] fix typo --- extras/outbounds/acl/compile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/outbounds/acl/compile.go b/extras/outbounds/acl/compile.go index d27c498..45f97df 100644 --- a/extras/outbounds/acl/compile.go +++ b/extras/outbounds/acl/compile.go @@ -42,7 +42,7 @@ type compiledRule[O Outbound] struct { HostMatcher hostMatcher Protocol Protocol StartPort uint16 - EndPoint uint16 + EndPort uint16 HijackAddress net.IP } @@ -50,7 +50,7 @@ func (r *compiledRule[O]) Match(host HostInfo, proto Protocol, port uint16) bool if r.Protocol != ProtocolBoth && r.Protocol != proto { return false } - if r.StartPort != 0 && (port < r.StartPort || port > r.EndPoint) { + if r.StartPort != 0 && (port < r.StartPort || port > r.EndPort) { return false } return r.HostMatcher.Match(host)