1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps-admin.git synced 2025-02-12 10:31:52 +00:00

Add none encryption support configuration to Shadowsocks-go

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-08-27 15:05:24 +02:00
parent c1fd3b531b
commit ccbb69e41c

View file

@ -2184,8 +2184,9 @@ def shadowsocks_go(*, params: ShadowsocksGoConfigparams, current_user: User = De
return {'result': 'error', 'reason': 'Read only user', 'route': 'shadowsocks-go'}
port = params.port
# If method is aes 128 then key need to be length 16 instead of 32, so force aes-256-gcm for now
#method = params.method
method = "2022-blake3-aes-256-gcm"
method = params.method
if method == "2022-blake3-aes-128-gcm":
method = "2022-blake3-aes-256-gcm"
fast_open = params.fast_open
reuse_port = params.reuse_port
mptcp = params.mptcp