diff --git a/script.sh b/script.sh index 2984c1a20..1491b7150 100644 --- a/script.sh +++ b/script.sh @@ -125,5 +125,5 @@ else echo "Only 1 or 2 are supported." exit 1 # 退出并返回错误码 fi -sed -i "s/^remote_port = .*/remote_port = $TARGET_REMOTE_PORT/" "$FRP_CONFIG_FILE" +sed -i '' "s/REMOTE_PORT/$TARGET_REMOTE_PORT/" "$FRP_CONFIG_FILE" sleep 2