Revert "proxy works directly with the server without v2ray"

This reverts commit 1b6a95e398.
This commit is contained in:
mercury
2023-02-14 16:06:43 +04:00
parent 1b6a95e398
commit 159dfe60b3
2 changed files with 20 additions and 2 deletions
+7 -2
View File
@@ -1,6 +1,11 @@
cat /ssh/key.pub > /root/.ssh/authorized_keys
service ssh start
sed "s/\"server_port\": [0-9]\+/\"server_port\": $SSPORT/" /config.json > change_port
cat change_port > /config.json
sed -n "s/\"server_port\": \([0-9]\+\),/\1/p" /config.json > current_port
CURRENT_PORT=$(cat current_port | tr -d " ")
if [ "$CURRENT_PORT" -ne "443" ]
then
sed "s/\"server_port\": [0-9]\+/\"server_port\": $SSPORT/" /config.json > change_port
cat change_port > /config.json
fi
/sslocal -v -d -c /config.json
tail -f /dev/null