修复bug

This commit is contained in:
cppla
2026-02-27 17:57:31 +08:00
parent bbde4cb1e9
commit ed64656a06
2 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ wget --no-check-certificate -qO client-linux.py 'https://raw.githubusercontent.c
docker run -d --restart=always --name=serverstatus-client --network=host --pid=host -e SERVER=127.0.0.1 -e USER=s01 cppla/serverstatus:client docker run -d --restart=always --name=serverstatus-client --network=host --pid=host -e SERVER=127.0.0.1 -e USER=s01 cppla/serverstatus:client
`Docker-compose`: `Docker-compose`:
docker compose -f docker-compose-client.yml up -d SERVER='127.0.0.1' USER='s01' docker compose -f docker-compose-client.yml up -d --force-recreate
`Dockerfile.client`(本地构建客户端): `Dockerfile.client`(本地构建客户端):
docker build -f Dockerfile.client -t serverstatus-client . docker build -f Dockerfile.client -t serverstatus-client .
+12 -12
View File
@@ -9,15 +9,15 @@ services:
network_mode: host network_mode: host
pid: host pid: host
environment: environment:
SERVER: "${SERVERSTATUS_SERVER:-127.0.0.1}" SERVER: "${SERVER:-127.0.0.1}"
USER: "${SERVERSTATUS_USER:-s01}" USER: "${USER:-s01}"
PORT: "${SERVERSTATUS_PORT:-35601}" PORT: "${PORT:-35601}"
PASSWORD: "${SERVERSTATUS_PASSWORD:-USER_DEFAULT_PASSWORD}" PASSWORD: "${PASSWORD:-USER_DEFAULT_PASSWORD}"
INTERVAL: "${SERVERSTATUS_INTERVAL:-1}" INTERVAL: "${INTERVAL:-1}"
PROBEPORT: "${SERVERSTATUS_PROBEPORT:-80}" PROBEPORT: "${PROBEPORT:-80}"
PROBE_PROTOCOL_PREFER: "${SERVERSTATUS_PROBE_PROTOCOL_PREFER:-ipv4}" PROBE_PROTOCOL_PREFER: "${PROBE_PROTOCOL_PREFER:-ipv4}"
PING_PACKET_HISTORY_LEN: "${SERVERSTATUS_PING_PACKET_HISTORY_LEN:-100}" PING_PACKET_HISTORY_LEN: "${PING_PACKET_HISTORY_LEN:-100}"
CU: "${SERVERSTATUS_CU:-cu.tz.cloudcpp.com}" CU: "${CU:-cu.tz.cloudcpp.com}"
CT: "${SERVERSTATUS_CT:-ct.tz.cloudcpp.com}" CT: "${CT:-ct.tz.cloudcpp.com}"
CM: "${SERVERSTATUS_CM:-cm.tz.cloudcpp.com}" CM: "${CM:-cm.tz.cloudcpp.com}"
CLIENT: "${SERVERSTATUS_CLIENT:-linux}" CLIENT: "${CLIENT:-linux}"