diff --git a/frontend/src/pages/xray/OutboundFormModal.tsx b/frontend/src/pages/xray/OutboundFormModal.tsx index 4d628b57..0e4ea70d 100644 --- a/frontend/src/pages/xray/OutboundFormModal.tsx +++ b/frontend/src/pages/xray/OutboundFormModal.tsx @@ -18,10 +18,9 @@ import { SyncOutlined, PlusOutlined, MinusOutlined, DeleteOutlined } from '@ant- import { Wireguard } from '@/utils'; import InputAddon from '@/components/InputAddon'; +import { Outbound, SSMethods } from '@/models/outbound'; import { - Outbound, - Protocols, - SSMethods, + OutboundProtocols as Protocols, TLS_FLOW_CONTROL, UTLS_FINGERPRINT, ALPN_OPTION, @@ -32,7 +31,7 @@ import { Address_Port_Strategy, MODE_OPTION, DNSRuleActions, -} from '@/models/outbound'; +} from '@/schemas/primitives'; import FinalMaskForm from '@/components/FinalMaskForm'; import JsonEditor from '@/components/JsonEditor'; import { OutboundTagSchema } from '@/schemas/xray'; @@ -494,7 +493,7 @@ function FreedomFields({ ob, refresh }: FieldProps) { { rule.action = v; refresh(); }} - options={(DNSRuleActions as string[]).map((a) => ({ value: a, label: a }))} + options={DNSRuleActions.map((a) => ({ value: a, label: a }))} /> @@ -775,7 +774,7 @@ function WireguardFields({ ob, refresh, regenerate, t }: TFieldProps & { regener