mirror of
https://github.com/ZeroDream-CN/SakuraPanel.git
synced 2025-01-12 09:52:52 +08:00
Fix: Port range bug
This commit is contained in:
parent
5f34bf9c2f
commit
7c6a51bcf4
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user