mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-07-01 12:32:09 +00:00
chore: refactor randomShadowsocksPassword
function
This commit is contained in:
parent
c503adaef7
commit
1048e522c2
1 changed files with 2 additions and 2 deletions
|
@ -138,10 +138,10 @@ class RandomUtil {
|
|||
}
|
||||
}
|
||||
|
||||
static randomShadowsocksPassword(method = "2022-blake3-aes-256-gcm") {
|
||||
static randomShadowsocksPassword(method = SSMethods.BLAKE3_AES_256_GCM) {
|
||||
let length = 32;
|
||||
|
||||
if (method === "2022-blake3-aes-128-gcm") {
|
||||
if ([SSMethods.BLAKE3_AES_128_GCM].includes(method)) {
|
||||
length = 16;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue