改进 Edge
This commit is contained in:
parent
876f3dff04
commit
bf60034518
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user