From ccbb69e41c702d69184c45bb5f4c645715444afd Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 27 Aug 2024 15:05:24 +0200 Subject: [PATCH] Add none encryption support configuration to Shadowsocks-go --- omr-admin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/omr-admin.py b/omr-admin.py index 286ae30..a05855b 100755 --- a/omr-admin.py +++ b/omr-admin.py @@ -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