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

+1
View File
@@ -8,3 +8,4 @@ run: build
test:
go test ./...
go vet ./...