diff --git a/README.md b/README.md index 50b7b21..7e29483 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,9 @@ 修改环境变量后运行如下命令,注册你的节点到 OpenTDP Blackbox 列表。 ```shell -docker run --name blackbox -d \ - --restart=always \ +docker run -d \ + --name blackbox \ + --restart always \ --env "NODE_NAME=your-node-name" \ --env "NODE_OWNER=your-name" \ --env "NODE_REGION=your-city" \ diff --git a/initfs/etc/wkit.d/s3-frpc b/initfs/etc/wkit.d/s3-frpc index b789a86..2946d06 100644 --- a/initfs/etc/wkit.d/s3-frpc +++ b/initfs/etc/wkit.d/s3-frpc @@ -2,7 +2,7 @@ # token=$(echo "$NODE_NAME;$NODE_OWNER;$NODE_REGION;$NODE_ISP;$NODE_BANNER" | base64) -wget -qO /etc/frp/frpc.ini "http://blackbox.opentdp.org/join.php?token=$token +wget -qO- --header="Token: $token" "http://blackbox.opentdp.org/join/" >/etc/frp/frpc.ini if ! grep -q opentdp /etc/frp/frpc.ini; then echo "Failed to join opentdp blackbox"