Skip to content

Commit

Permalink
feat(tuic): add congestion control select options
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Jul 13, 2023
1 parent eed4d99 commit 0902e3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/ConfigureNodeFormModal/TuicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ export const TuicForm = ({ onLinkGeneration }: { onLinkGeneration: (link: string

<TextInput label={t('configureNode.password')} withAsterisk {...getInputProps('password')} />

<TextInput label="Congestion Control" {...getInputProps('congestion_control')} />
<Select
label={t('configureNode.congestionControl')}
data={[
{ label: 'bbr', value: 'bbr' },
{ label: 'cubic', value: 'cubic' },
]}
{...getInputProps('congestion_control')}
/>

<TextInput label="Alpn" {...getInputProps('alpn')} />

Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"collapse": "collapse",
"config": "Config",
"configureNode": {
"congestionControl": "Congestion Control",
"dtlsObfuscation": "Obfuscated as DTLS1.2 Packets",
"forceTLS": "forcibly TLS on",
"host": "Host",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"collapse": "折叠",
"config": "配置",
"configureNode": {
"congestionControl": "拥堵控制算法",
"dtlsObfuscation": "伪装为 DTLS1.2 数据包",
"forceTLS": "强制开启 TLS",
"host": "主机地址",
Expand Down

0 comments on commit 0902e3f

Please sign in to comment.