From 7c6a51bcf40344d5510d97471cbd70273b7668cd Mon Sep 17 00:00:00 2001 From: Akkariin Meiko Date: Sun, 19 Jan 2020 11:48:01 +0800 Subject: [PATCH] Fix: Port range bug --- core/ProxyManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ProxyManager.php b/core/ProxyManager.php index 1dda8f7..157a1c9 100755 --- a/core/ProxyManager.php +++ b/core/ProxyManager.php @@ -219,7 +219,7 @@ class ProxyManager { if(isset($_config['proxies']['protect']) && !empty($_config['proxies']['protect'])) { foreach($_config['proxies']['protect'] as $key => $value) { - if(Intval($data['remote_port']) > $key && Intval($data['remote_port']) < $value) { + if(Intval($data['remote_port']) >= $key && Intval($data['remote_port']) <= $value) { return Array(false, "该远程端口不可用,因为它属于系统保留端口范围,详情请点击端口规则查看。"); } } @@ -350,4 +350,4 @@ EOF; return $configuration; } -} \ No newline at end of file +}