@@ -119,7 +119,7 @@ export default function CoreConfigModal({ isDialogOpen, onOpenChange, form, edit
119119 const [ isGeneratingKeyPair , setIsGeneratingKeyPair ] = useState ( false )
120120 const [ isGeneratingShortId , setIsGeneratingShortId ] = useState ( false )
121121 const [ isGeneratingVLESSEncryption , setIsGeneratingVLESSEncryption ] = useState ( false )
122- const [ selectedEncryptionMethod ] = useState < string > ( SHADOWSOCKS_ENCRYPTION_METHODS [ 0 ] . value )
122+ const [ selectedEncryptionMethod , setSelectedEncryptionMethod ] = useState < string > ( SHADOWSOCKS_ENCRYPTION_METHODS [ 0 ] . value )
123123 const [ isGeneratingShadowsocksPassword , setIsGeneratingShadowsocksPassword ] = useState ( false )
124124 const [ isGeneratingMldsa65 , setIsGeneratingMldsa65 ] = useState ( false )
125125 const [ selectedVlessVariant , setSelectedVlessVariant ] = useState < VlessVariant > ( 'x25519' )
@@ -1661,6 +1661,28 @@ export default function CoreConfigModal({ isDialogOpen, onOpenChange, form, edit
16611661 Shadowsocks TAB
16621662 ============================================ */ }
16631663 < TabsContent value = "shadowsocks" className = "mt-3 space-y-3 animate-in fade-in-50 duration-300" >
1664+ { /* Encryption Method Selector */ }
1665+ < div className = "space-y-2" >
1666+ < Label className = "text-xs font-semibold tracking-wide text-muted-foreground" >
1667+ { t ( 'coreConfigModal.shadowsocksEncryptionMethod' , { defaultValue : 'Encryption Method' } ) }
1668+ </ Label >
1669+ < Select
1670+ value = { selectedEncryptionMethod }
1671+ onValueChange = { setSelectedEncryptionMethod }
1672+ >
1673+ < SelectTrigger className = "h-9" >
1674+ < SelectValue />
1675+ </ SelectTrigger >
1676+ < SelectContent >
1677+ { SHADOWSOCKS_ENCRYPTION_METHODS . map ( method => (
1678+ < SelectItem key = { method . value } value = { method . value } >
1679+ { method . label }
1680+ </ SelectItem >
1681+ ) ) }
1682+ </ SelectContent >
1683+ </ Select >
1684+ </ div >
1685+
16641686 { /* Action Buttons */ }
16651687 < div className = "grid gap-2 sm:grid-cols-2 sm:gap-3" >
16661688 < LoaderButton
0 commit comments