update: vless

This commit is contained in:
v2board
2023-08-02 01:52:25 +08:00
parent 07de70d8ab
commit 31c5cf1c2b
4 changed files with 23 additions and 5 deletions

View File

@ -120,4 +120,10 @@ class Helper
$portRange = explode('-', $range);
return rand($portRange[0], $portRange[1]);
}
public static function base64EncodeUrlSafe($data)
{
$encoded = base64_encode($data);
return str_replace(['+', '/', '='], ['-', '_', ''], $encoded);
}
}