routing tests, launch.configs, redirect, stats and route statistics
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user