fix frpc.ini

This commit is contained in:
lyon1998 2023-05-31 01:24:20 +08:00
parent 85e6c10a16
commit b71287b5ac
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ server_addr = %FRPC_SERVER_ADDR%
server_port = %FRPC_SERVER_PORT% server_port = %FRPC_SERVER_PORT%
token = %FRPC_TOKEN% token = %FRPC_TOKEN%
[ssh] [ssh%FRPC_REMOTE_PORT%]
type = tcp type = tcp
local_ip = 127.0.0.1 local_ip = 127.0.0.1
local_port = 22 local_port = 22

View File

@ -21,7 +21,7 @@ if [ -n "$frpc_server_port" ]; then
# 启动frpc # 启动frpc
echo "Starting frpc..." echo "Starting frpc..."
docker rm $DOCKER_NAME -f docker rm $DOCKER_NAME -f
docker run -it --name $DOCKER_NAME \ docker run -d --name $DOCKER_NAME \
--restart always \ --restart always \
-w /root/pikascript \ -w /root/pikascript \
-e FRPC_REMOTE_PORT=$frpc_remote_port \ -e FRPC_REMOTE_PORT=$frpc_remote_port \