mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
commit
161d3dbf01
@ -35,13 +35,13 @@ mkdir -p /etc/v2ray
|
|||||||
if [ ! -f "/etc/v2ray/config.json" ]; then
|
if [ ! -f "/etc/v2ray/config.json" ]; then
|
||||||
cp "/tmp/v2ray/v2ray-${VER}-linux-${VDIS}/vpoint_vmess_freedom.json" "/etc/v2ray/config.json"
|
cp "/tmp/v2ray/v2ray-${VER}-linux-${VDIS}/vpoint_vmess_freedom.json" "/etc/v2ray/config.json"
|
||||||
|
|
||||||
#PORT=$(expr $RANDOM + 10000)
|
let PORT=$RANDOM+10000
|
||||||
#sed -i "s/37192/${PORT}/g" "/etc/v2ray/config.json"
|
sed -i "s/37192/${PORT}/g" "/etc/v2ray/config.json"
|
||||||
|
|
||||||
UUID=$(cat /proc/sys/kernel/random/uuid)
|
UUID=$(cat /proc/sys/kernel/random/uuid)
|
||||||
sed -i "s/3b129dec-72a3-4d28-aeee-028a0fe86e22/${UUID}/g" "/etc/v2ray/config.json"
|
sed -i "s/3b129dec-72a3-4d28-aeee-028a0fe86e22/${UUID}/g" "/etc/v2ray/config.json"
|
||||||
|
|
||||||
#echo "PORT:${PORT}"
|
echo "PORT:${PORT}"
|
||||||
echo "UUID:${UUID}"
|
echo "UUID:${UUID}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user