diff --git a/apps/admin/app/dashboard/server/form-schema.ts b/apps/admin/app/dashboard/server/form-schema.ts index 84603bc..6c43a19 100644 --- a/apps/admin/app/dashboard/server/form-schema.ts +++ b/apps/admin/app/dashboard/server/form-schema.ts @@ -12,6 +12,8 @@ const securityConfigSchema = z reality_private_key: nullableString, reality_public_key: nullableString, reality_short_id: nullableString, + reality_server_addr: nullableString, + reality_server_port: portSchema, }) .nullish(); diff --git a/apps/admin/app/dashboard/server/node-form.tsx b/apps/admin/app/dashboard/server/node-form.tsx index 9aaac5c..cf60d07 100644 --- a/apps/admin/app/dashboard/server/node-form.tsx +++ b/apps/admin/app/dashboard/server/node-form.tsx @@ -637,7 +637,7 @@ export default function NodeForm({ <> ( {t('form.security_config.serverAddress')} @@ -658,7 +658,7 @@ export default function NodeForm({ /> ( {t('form.security_config.serverPort')} @@ -678,34 +678,7 @@ export default function NodeForm({ /> ( - - {t('form.security_config.proxyProtocol')} - - - - )} - /> - ( {t('form.security_config.privateKey')} @@ -724,7 +697,7 @@ export default function NodeForm({ /> ( {t('form.security_config.publicKey')} @@ -743,7 +716,7 @@ export default function NodeForm({ /> ( {t('form.security_config.shortId')} diff --git a/apps/admin/locales/en-US/server.json b/apps/admin/locales/en-US/server.json index 8317cb4..84bcc53 100644 --- a/apps/admin/locales/en-US/server.json +++ b/apps/admin/locales/en-US/server.json @@ -70,7 +70,6 @@ "fingerprint": "Fingerprint", "privateKey": "Private Key", "privateKeyPlaceholder": "Leave blank for auto-generation", - "proxyProtocol": "Proxy Protocol", "publicKey": "Public Key", "publicKeyPlaceholder": "Leave blank for auto-generation", "serverAddress": "Server Address", diff --git a/apps/admin/locales/zh-CN/server.json b/apps/admin/locales/zh-CN/server.json index 709b11f..bb41e92 100644 --- a/apps/admin/locales/zh-CN/server.json +++ b/apps/admin/locales/zh-CN/server.json @@ -70,7 +70,6 @@ "fingerprint": "FingerPrint", "privateKey": "Private Key", "privateKeyPlaceholder": "留空自动生成", - "proxyProtocol": "Proxy Protocol", "publicKey": "Public Key", "publicKeyPlaceholder": "留空自动生成", "serverAddress": "Server Address",