velesdb-memory 0.14.1

VelesDB-memory: local-first MCP memory server for AI agents (remember/recall/relate/forget/why + deterministic context compiler).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::is_loopback_host;

#[test]
fn loopback_v4_and_v6_are_recognized() {
    assert!(is_loopback_host("127.0.0.1:18090"));
    assert!(is_loopback_host("127.0.0.5:18090"));
    assert!(is_loopback_host("[::1]:18090"));
}

#[test]
fn non_loopback_hosts_are_rejected() {
    assert!(!is_loopback_host("0.0.0.0:18090"));
    assert!(!is_loopback_host("192.168.1.10:18090"));
    assert!(!is_loopback_host("[::]:18090"));
    assert!(!is_loopback_host("mcp.example.com:18090"));
}