Load the node server settings from a .env file

The reflector and probe node read .env next to the binary and from the working directory. Command-line flags still override environment variables, which override the file. Missing .env files are ignored, and the packaged defaults stay TCP 19090 and UDP 19091.

Co-authored-by: yanjiu0721 <yanjiu0721@users.noreply.github.com>
This commit is contained in:
Cursor Agentandyanjiu0721 committed 2026-11-10 08:39:48 +00:00
1 parent f6ffbde518
commit ef1c5b42ab
14 files changed
+1086 -106

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
@echo off
cd /d "%~dp0"
echo 正在启动网络质量探测节点。端口和口令请改同目录下的 .env
netquality-reflector.exe
echo.
echo 程序已退出。如果上面有报错,请检查 .env 后重新双击本文件。
pause