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 +}