Update config-editor.tsx

This commit is contained in:
mcchampions committed 2024-08-14 21:23:12 +08:00
1 parent f310aa2d32
commit 203562fa99
1 file changed
+5 -2
+5 -2
View File
@@ -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 += '<strong>Note: This option is commented on, and if you change it, it will be automatically uncommented.</strong>' + '<br>';
@@ -210,7 +211,9 @@ const ConfigEditorPage: React.FC = () => {
return <input key={name} className={styles.formInput} type='text' disabled defaultValue={value.replace(/"/g, '')} />;
case 'metrics.uuid':
return <input key={name} className={styles.formInput} id={name} type='text' disabled defaultValue={value === 'generateduuid' ? crypto.randomUUID() : value} />;
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') {