1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

fix default uuid and port

This commit is contained in:
v2ray 2016-05-28 14:09:01 +02:00
parent 3f9cb1136a
commit 8f4bd95bc3

View File

@ -156,10 +156,10 @@ if [ ! -f "/etc/v2ray/config.json" ]; then
cp "/tmp/v2ray/v2ray-${VER}-linux-${VDIS}/vpoint_vmess_freedom.json" "/etc/v2ray/config.json"
let PORT=$RANDOM+10000
sed -i "s/38291/${PORT}/g" "/etc/v2ray/config.json"
sed -i "s/10086/${PORT}/g" "/etc/v2ray/config.json"
UUID=$(cat /proc/sys/kernel/random/uuid)
sed -i "s/8833948b-5861-4a0f-a1d6-83c5606881ff/${UUID}/g" "/etc/v2ray/config.json"
sed -i "s/23ad6b10-8d1a-40f7-8ad0-e3e35cd38297/${UUID}/g" "/etc/v2ray/config.json"
echo "PORT:${PORT}"
echo "UUID:${UUID}"