mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
shadowsocks: Add more ciphers
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
c61d61ec66
commit
2ee82e4b5a
@ -23,8 +23,25 @@ from django import forms
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth.forms import ServiceForm
|
||||
from plinth.utils import format_lazy
|
||||
|
||||
METHODS = ['chacha20-ietf-poly1305', 'aes-256-gcm']
|
||||
METHODS = [
|
||||
('chacha20-ietf-poly1305',
|
||||
format_lazy('chacha20-ietf-poly1305 ({})', _('Recommended'))),
|
||||
('aes-256-gcm', format_lazy('aes-256-gcm ({})', _('Recommended'))),
|
||||
('aes-192-gcm', 'aes-192-gcm'),
|
||||
('aes-128-gcm', 'aes-128-gcm'),
|
||||
('aes-128-ctr', 'aes-128-ctr'),
|
||||
('aes-192-ctr', 'aes-192-ctr'),
|
||||
('aes-256-ctr', 'aes-256-ctr'),
|
||||
('aes-128-cfb', 'aes-128-cfb'),
|
||||
('aes-192-cfb', 'aes-192-cfb'),
|
||||
('aes-256-cfb', 'aes-256-cfb'),
|
||||
('camellia-128-cfb', 'camellia-128-cfb'),
|
||||
('camellia-192-cfb', 'camellia-192-cfb'),
|
||||
('camellia-256-cfb', 'camellia-256-cfb'),
|
||||
('chacha20-ietf', 'chacha20-ietf')
|
||||
]
|
||||
|
||||
|
||||
class TrimmedCharField(forms.CharField):
|
||||
@ -57,5 +74,5 @@ class ShadowsocksForm(ServiceForm):
|
||||
|
||||
method = forms.ChoiceField(
|
||||
label=_('Method'),
|
||||
choices=[(method, method) for method in METHODS],
|
||||
choices=METHODS,
|
||||
help_text=_('Encryption method. Must match setting on server.'))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user