routing tests, launch.configs, redirect, stats and route statistics

This commit is contained in:
Dobromir Popov
2026-07-11 11:39:47 +03:00
parent f54ea100fb
commit 11bf460027
12 changed files with 546 additions and 80 deletions

View File

@@ -2,6 +2,7 @@
import argparse
import os
import socket
import sys
import time
from pathlib import Path
@@ -53,7 +54,10 @@ def _load_env_file(path: Path) -> None:
def _load_env_defaults() -> None:
"""Load local and user-level tracker env defaults before parsing arguments."""
"""Load machine-specific, local, and user-level tracker env defaults."""
machine = socket.gethostname().strip()
if machine:
_load_env_file(Path.cwd() / f".env.{machine}")
_load_env_file(Path.cwd() / ".env")
_load_env_file(Path.home() / ".config" / "meshnet" / "secrets.env")