You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(routes): warn when manual route targets a CIDR not advertised by the peer
When a user adds a route pointing at a peer that advertises auto-managed
routes (from its handshake), but none of those routes cover the requested
CIDR, the route is silently accepted yet traffic will never reach its
destination.
This commit makes the gap visible across all interfaces:
- IPC layer logs a tracing::warn and returns the warning in OkResponse.warning
- REPL/CLI prints the warning to stderr after "OK"
- MCP tool appends it to the success text
- REST API includes it in the SuccessResponse.message field
If the peer has no auto-managed routes (e.g. explicit-mode peers that
don't advertise routes), no warning is issued.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments