Skip to content

Commit

Permalink
Add none encryption support configuration to Shadowsocks-go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Aug 27, 2024
1 parent c1fd3b5 commit ccbb69e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions omr-admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ccbb69e

Please sign in to comment.