Skip to content

Commit

Permalink
🐛 fix(node): Trojan protocol config
Browse files Browse the repository at this point in the history
  • Loading branch information
web-ppanel committed Nov 21, 2024
1 parent c06372b commit 7e1eb90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/admin/app/dashboard/server/node-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const trojanSchema = z.object({
port: z.number(),
network: z.string(),
sni: z.string().nullish(),
allow_insecure: z.boolean().nullable(),
allow_insecure: z.boolean().nullish(),
transport: z.any().nullable(),
enable_relay: z.boolean().nullish(),
relay_host: z.string().nullish(),
Expand Down Expand Up @@ -1433,7 +1433,7 @@ export default function NodeForm<T extends { [x: string]: any }>({
<JSONEditor
title={t('form.transport')}
placeholder={placeholders[trojanNetwork]}
value={JSON.stringify(field.value, null, 2)}
value={field.value}
onChange={(value) => {
form.setValue(field.name, value);
}}
Expand Down

0 comments on commit 7e1eb90

Please sign in to comment.