修改REALITY的shortId生成方式

This commit is contained in:
root 2023-08-22 00:10:52 +09:00
parent b6fc46821a
commit 533abaf4c8
2 changed files with 1 additions and 24 deletions

View File

@ -41,7 +41,7 @@ class VlessController extends Controller
$params['tls_settings']['private_key'] = Helper::base64EncodeUrlSafe(SodiumCompat::crypto_box_secretkey($keyPair));
}
if (!isset($params['tls_settings']['shortId'])) {
$params['tls_settings']['shortId'] = substr(sha1($params['name']), 0, 8);
$params['tls_settings']['shortId'] = substr(sha1($params['tls_settings']['private_key']), 0, 8);
}
}

View File

@ -1,23 +0,0 @@
#!/bin/bash
if [ ! -d ".git" ]; then
echo "Please deploy using Git."
exit 1
fi
if ! command -v git &> /dev/null; then
echo "Git is not installed! Please install git and try again."
exit 1
fi
git config --global --add safe.directory $(pwd)
git fetch --all && git reset --hard origin/dev && git pull origin dev
git checkout dev
rm -rf composer.lock composer.phar
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
php composer.phar update -vvv
php artisan v2board:update
if [ -f "/etc/init.d/bt" ]; then
chown -R www $(pwd);
fi