From d285c1cad8b3feb9b0bf41f1324001f5a5495a92 Mon Sep 17 00:00:00 2001 From: mcchampions <1309635304@qq.com> Date: Thu, 15 Aug 2024 11:17:07 +0800 Subject: [PATCH] Revert "Merge branch 'patch5-temp' into patch-5" This reverts commit 538eab6ac64cb2e633891ecb284732ed9ea3e98d, reversing changes made to b0538f6e3c40d5dfc1946c93e11577af7814aefd. --- src/pages/utilities/config-editor.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/utilities/config-editor.tsx b/src/pages/utilities/config-editor.tsx index 49c18f2..31d83e4 100644 --- a/src/pages/utilities/config-editor.tsx +++ b/src/pages/utilities/config-editor.tsx @@ -101,12 +101,11 @@ const ConfigEditorPage: React.FC = () => { val += splitLine[j]; } val = val.trim(); - /* + if (splitLine[0].includes('proxy-protocol-whitelisted-ips')) { currentComment = ''; continue; } - */ if (commented) { currentComment += 'Note: This option is commented on, and if you change it, it will be automatically uncommented.' + '
'; @@ -215,10 +214,7 @@ const ConfigEditorPage: React.FC = () => { return ; case 'metrics.uuid': return ; - case 'bedrock.#proxy-protocol-whitelisted-ips': - case 'bedrock.proxy-protocol-whitelisted-ips': - console.log(JSON.parse(value)); - console.log(value); + default: // Handle all the other inputs if (value.toLowerCase() === 'true' || value.toLowerCase() === 'false') {