Skip to content

Commit

Permalink
fix: 更正注册提交方法
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Oct 28, 2023
1 parent 4f565b3 commit 313e328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion initfs/etc/wkit.d/s3-frpc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 313e328

Please sign in to comment.