mirror of
https://github.com/v2board/v2board.git
synced 2025-03-12 21:54:42 +08:00
修改REALITY的shortId生成方式
This commit is contained in:
parent
b6fc46821a
commit
533abaf4c8
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user