diff --git a/stubs/edge.stub b/stubs/edge.stub index 439e20f..cea9684 100644 --- a/stubs/edge.stub +++ b/stubs/edge.stub @@ -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 {