Skip to content

Commit

Permalink
修正读取空黑名单文件的warning问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ryjer committed Sep 12, 2023
1 parent 719a81c commit 5b6b6d8
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
with:
context: private
file: Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/amd64,linux/arm64
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
Expand Down
2 changes: 2 additions & 0 deletions blacklist
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@


2 changes: 1 addition & 1 deletion opentracker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# listen.tcp_udp 10.0.0.5:6969
#
# To only listen on tcp or udp family ports, list them this way:
# 如果只想监听 tcp 或 udp 端口,向下面这样设置
# 如果只想监听 tcp 或 udp 端口,则像下面这样设置
#
# listen.tcp 0.0.0.0
# listen.udp 192.168.0.1:6969
Expand Down
3 changes: 1 addition & 2 deletions private/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ COPY ./blacklist ${XDG_CONFIG_HOME}/blacklist
EXPOSE 6969/tcp
EXPOSE 6969/udp

# CMD ["/bin/opentracker", "-f", "${XDG_CONFIG_HOME}/opentracker.conf"]
CMD ["/bin/opentracker"]
CMD ["/bin/opentracker", "-f", "${XDG_CONFIG_HOME}/opentracker.conf"]
2 changes: 2 additions & 0 deletions private/blacklist
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@


2 changes: 1 addition & 1 deletion private/opentracker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ access.blacklist /config/blacklist
#
#
# tracker.rootdir /usr/local/etc/opentracker
tracker.rootdir /config
# tracker.rootdir /config
#
# Tell opentracker which user to setuid to.
# 告知opentracker的运行用户:
Expand Down
2 changes: 2 additions & 0 deletions private/whitelist
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@


2 changes: 2 additions & 0 deletions whitelist
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@


0 comments on commit 5b6b6d8

Please sign in to comment.