改进 Edge

This commit is contained in:
iVampireSP.com 2023-02-09 18:59:27 +08:00
parent 876f3dff04
commit bf60034518
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -183,8 +183,12 @@ while (true) {
$temp_conf .= "server {$node['ip']}";
if (isset($node['weight'])) {
if ($node['weight'] !== "0") {
$temp_conf .= " weight={$node['weight']} ";
}
} else {
$temp_conf .= ' weight=1 ';
}
if ($node['type'] == 'master') {
if (count($nodes) <= 2) {