改进 调度

This commit is contained in:
iVampireSP.com 2023-02-09 19:26:56 +08:00
parent 20d3fc9f92
commit f1a7909991
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -183,7 +183,9 @@ while (true) {
$temp_conf .= "server {$node['ip']}";
if (isset($node['weight'])) {
if ($node['weight'] !== "0") {
if ($node['weight'] === "0") {
continue;
} else {
$temp_conf .= " weight={$node['weight']} ";
}
} else {