From 203562fa99a06fe20957d974f59e130861cb347d Mon Sep 17 00:00:00 2001
From: mcchampions <1309635304@qq.com>
Date: Wed, 14 Aug 2024 21:23:12 +0800
Subject: [PATCH] Update config-editor.tsx
---
src/pages/utilities/config-editor.tsx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/pages/utilities/config-editor.tsx b/src/pages/utilities/config-editor.tsx
index c3360bc..4c55bb0 100644
--- a/src/pages/utilities/config-editor.tsx
+++ b/src/pages/utilities/config-editor.tsx
@@ -97,11 +97,12 @@ const ConfigEditorPage: React.FC = () => {
const splitLine = line.split(':');
splitLine[0] = splitLine[0].trim();
splitLine[1] = splitLine[1].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.' + '
';
@@ -210,7 +211,9 @@ const ConfigEditorPage: React.FC = () => {
return ;
case 'metrics.uuid':
return ;
-
+ case 'bedrock.#proxy-protocol-whitelisted-ips':
+ case 'bedrock.proxy-protocol-whitelisted-ips':
+ console.log(value);
default:
// Handle all the other inputs
if (value.toLowerCase() === 'true' || value.toLowerCase() === 'false') {