From f1a7909991c1de544ac6daa75d4aca78ec7c23e2 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Thu, 9 Feb 2023 19:26:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stubs/edge.stub | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {