From b71287b5accac61e5134904f4378d1a8440e8fb7 Mon Sep 17 00:00:00 2001 From: lyon1998 Date: Wed, 31 May 2023 01:24:20 +0800 Subject: [PATCH] fix frpc.ini --- docker/frpc.ini | 2 +- docker/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/frpc.ini b/docker/frpc.ini index 78934ef81..2a63abe6b 100644 --- a/docker/frpc.ini +++ b/docker/frpc.ini @@ -5,7 +5,7 @@ server_addr = %FRPC_SERVER_ADDR% server_port = %FRPC_SERVER_PORT% token = %FRPC_TOKEN% -[ssh] +[ssh%FRPC_REMOTE_PORT%] type = tcp local_ip = 127.0.0.1 local_port = 22 diff --git a/docker/run.sh b/docker/run.sh index 3a8c5d4a0..c46ac689b 100644 --- a/docker/run.sh +++ b/docker/run.sh @@ -21,7 +21,7 @@ if [ -n "$frpc_server_port" ]; then # 启动frpc echo "Starting frpc..." docker rm $DOCKER_NAME -f - docker run -it --name $DOCKER_NAME \ + docker run -d --name $DOCKER_NAME \ --restart always \ -w /root/pikascript \ -e FRPC_REMOTE_PORT=$frpc_remote_port \