Skip to content

Commit 0f2d0e0

Browse files
committed
Add Shadowsocks AEAD ciphers
1 parent e5adeb2 commit 0f2d0e0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Pages/ConfigPage.xaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<TextBlock Grid.Column="0" Grid.Row="2" Text="Server"/>
3636
<TextBox Grid.Column="1" Grid.Row="2" Text="{x:Bind ServerHost, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
3737
<TextBlock Grid.Column="0" Grid.Row="3" Text="Port"/>
38-
<TextBox Grid.Column="1" Grid.Row="3" InputScope="Number" Text="{x:Bind ServerPort, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
38+
<TextBox Grid.Column="1" Grid.Row="3" InputScope="Number" MaxLength="5" Text="{x:Bind ServerPort, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
3939
<TextBlock Grid.Column="0" Grid.Row="4" Text="Method"/>
4040
<ComboBox Grid.Column="1" Grid.Row="4" SelectedValue="{x:Bind Method, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" SelectionChanged="MethodComboBox_SelectionChanged">
4141
<x:String>rc4-md5</x:String>
@@ -45,10 +45,14 @@
4545
<x:String>aes-128-ctr</x:String>
4646
<x:String>aes-192-ctr</x:String>
4747
<x:String>aes-256-ctr</x:String>
48+
<x:String>aes-128-gcm</x:String>
49+
<x:String>aes-192-gcm</x:String>
50+
<x:String>aes-256-gcm</x:String>
4851
<x:String>camellia-128-cfb</x:String>
4952
<x:String>camellia-192-cfb</x:String>
5053
<x:String>camellia-256-cfb</x:String>
5154
<x:String>chacha20-ietf</x:String>
55+
<x:String>chacha20-ietf-poly1305</x:String>
5256
</ComboBox>
5357
<TextBlock Grid.Column="0" Grid.Row="5" Text="Password"/>
5458
<PasswordBox Grid.Column="1" Grid.Row="5" Password="{x:Bind Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" PasswordRevealMode="Hidden" GotFocus="PasswordBox_GotFocus" LostFocus="PasswordBox_LostFocus"/>
@@ -77,7 +81,7 @@
7781
<TextBlock Grid.Column="0" Grid.Row="2" Text="Server"/>
7882
<TextBox Grid.Column="1" Grid.Row="2" Text="{x:Bind ServerHost, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
7983
<TextBlock Grid.Column="0" Grid.Row="3" Text="Port"/>
80-
<TextBox Grid.Column="1" Grid.Row="3" InputScope="Number" Text="{x:Bind ServerPort, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
84+
<TextBox Grid.Column="1" Grid.Row="3" InputScope="Number" MaxLength="5" Text="{x:Bind ServerPort, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
8185
<TextBlock Grid.Column="0" Grid.Row="4" Text="UserName"/>
8286
<TextBox Grid.Column="1" Grid.Row="4" Text="{x:Bind UserName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" IsEnabled="False" ToolTipService.ToolTip="Not implemented"/>
8387
<TextBlock Grid.Column="0" Grid.Row="5" Text="Password"/>
@@ -107,7 +111,7 @@
107111
<TextBlock Grid.Column="0" Grid.Row="2" Text="Server"/>
108112
<TextBox Grid.Column="1" Grid.Row="2" Text="{x:Bind ServerHost, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
109113
<TextBlock Grid.Column="0" Grid.Row="3" Text="Port"/>
110-
<TextBox Grid.Column="1" Grid.Row="3" InputScope="Number" Text="{x:Bind ServerPort, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
114+
<TextBox Grid.Column="1" Grid.Row="3" InputScope="Number" MaxLength="5" Text="{x:Bind ServerPort, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
111115
<TextBlock Grid.Column="0" Grid.Row="4" Text="Password"/>
112116
<PasswordBox Grid.Column="1" Grid.Row="4" Password="{x:Bind Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" PasswordRevealMode="Hidden" GotFocus="PasswordBox_GotFocus" LostFocus="PasswordBox_LostFocus"/>
113117
<TextBlock Grid.Column="0" Grid.Row="5" Text="Allow Insecure"/>

0 commit comments

Comments
 (0)