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(request-response): configurable use of relayed connections
Add a config flag controlling whether outbound requests may be sent over relay
connections. Defaults to enabled (current behaviour); when disabled, only direct
connections are used, conserving relay bandwidth.
Promote is_relayed helper to core.
let addr:Multiaddr = "/ip4/127.0.0.1/tcp/1234".parse().unwrap();
23
+
assert!(!addr.is_relayed());
24
+
}
25
+
26
+
#[test]
27
+
fncircuit_address_is_relayed(){
28
+
let addr:Multiaddr = "/ip4/127.0.0.1/tcp/1234/p2p/12D3KooWDpJ7As7BWAwRMfu1VU2WCqNjvq387JEYKDBj4kx6nXTN/p2p-circuit/p2p/12D3KooWGzBRs8WVcMaEXGWwsvFSfJKYphwM6ojrPanuJfup1xFz".parse().unwrap();
0 commit comments