feat(network): verify selected uplinks, roll back failures and manage NetBird policy

This commit is contained in:
DCCONSTRUCTIONS
2026-11-21 20:58:26 +03:00
parent a50d638ced
commit 43d4916331
63 changed files with 6743 additions and 12 deletions
+8 -1
View File
@@ -144,7 +144,14 @@ def test_client_does_not_request_dns_routes_remote_shell_or_motion():
assert "--disable-client-routes" in client.SAFE_FLAGS
assert "--disable-server-routes" in client.SAFE_FLAGS
assert "--allow-server-ssh=false" in client.SAFE_FLAGS
assert "--network-monitor=true" in client.SAFE_FLAGS
def test_platform_native_network_monitor_policy(monkeypatch):
for name, expected in (("Linux", "false"), ("FreeBSD", "false"),
("Darwin", "false"), ("Windows", "true")):
monkeypatch.setattr(client.platform, "system", lambda: name)
assert "--network-monitor=" + expected in client.safe_flags()
assert set(client.SAFE_FLAGS).issubset(client.safe_flags())
def test_preflight_refuses_redirect_before_contacting_destination():