mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-30 08:01:44 +00:00
deploy: 41b28122c4dce91a37cee190ef14c47978e5025e
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Node address discovery."><title>iroh::discovery - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module discovery</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a></span><h1>Module <span>discovery</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/discovery.rs.html#1-884">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Node address discovery.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Node address discovery."><title>iroh::discovery - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module discovery</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a></span><h1>Module <span>discovery</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/discovery.rs.html#1-892">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Node address discovery.</p>
|
||||
<p>To connect to an iroh node a <a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a> is needed, which may contain a
|
||||
<a href="../struct.RelayUrl.html" title="struct iroh::RelayUrl"><code>RelayUrl</code></a> or one or more <em>direct addresses</em> in addition to the <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a>.</p>
|
||||
<p>Since there is a conversion from <a href="../type.NodeId.html" title="type iroh::NodeId"><code>NodeId</code></a> to <a href="../struct.NodeAddr.html" title="struct iroh::NodeAddr"><code>NodeAddr</code></a>, you can also use
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Environment variable to force the use of staging relays."><title>ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></span><h1>Constant <span class="constant">ENV_FORCE_STAGING_RELAYS</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1791">Source</a> </span></div><pre class="rust item-decl"><code>pub const ENV_FORCE_STAGING_RELAYS: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "IROH_FORCE_STAGING_RELAYS";</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Environment variable to force the use of staging relays.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Environment variable to force the use of staging relays."><title>ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></span><h1>Constant <span class="constant">ENV_FORCE_STAGING_RELAYS</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1764">Source</a> </span></div><pre class="rust item-decl"><code>pub const ENV_FORCE_STAGING_RELAYS: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a> = "IROH_FORCE_STAGING_RELAYS";</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Environment variable to force the use of staging relays.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the default relay mode."><title>default_relay_mode in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></span><h1>Function <span class="fn">default_relay_mode</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1802-1808">Source</a> </span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -> <a class="enum" href="enum.RelayMode.html" title="enum iroh::endpoint::RelayMode">RelayMode</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the default relay mode.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns the default relay mode."><title>default_relay_mode in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></span><h1>Function <span class="fn">default_relay_mode</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1775-1781">Source</a> </span></div><pre class="rust item-decl"><code>pub fn default_relay_mode() -> <a class="enum" href="enum.RelayMode.html" title="enum iroh::endpoint::RelayMode">RelayMode</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns the default relay mode.</p>
|
||||
<p>If the <code>IROH_FORCE_STAGING_RELAYS</code> environment variable is non empty, it will return <code>RelayMode::Staging</code>.
|
||||
Otherwise, it will return <code>RelayMode::Default</code>.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,2 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns `true` if the use of staging relays is forced."><title>force_staging_infra in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></span><h1>Function <span class="fn">force_staging_infra</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1794-1796">Source</a> </span></div><pre class="rust item-decl"><code>pub fn force_staging_infra() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns <code>true</code> if the use of staging relays is forced.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Returns `true` if the use of staging relays is forced."><title>force_staging_infra in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></span><h1>Function <span class="fn">force_staging_infra</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1767-1769">Source</a> </span></div><pre class="rust item-decl"><code>pub fn force_staging_infra() -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Returns <code>true</code> if the use of staging relays is forced.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a `ServerConfig` with the given secret key and limits."><title>make_server_config in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></span><h1>Function <span class="fn">make_server_config</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#480-491">Source</a> </span></div><pre class="rust item-decl"><code>pub fn make_server_config(
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a `ServerConfig` with the given secret key and limits."><title>make_server_config in iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a>::<wbr><a href="index.html">endpoint</a></span><h1>Function <span class="fn">make_server_config</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#481-492">Source</a> </span></div><pre class="rust item-decl"><code>pub fn make_server_config(
|
||||
secret_key: &<a class="struct" href="../struct.SecretKey.html" title="struct iroh::SecretKey">SecretKey</a>,
|
||||
alpn_protocols: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>>,
|
||||
transport_config: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><<a class="struct" href="struct.TransportConfig.html" title="struct iroh::endpoint::TransportConfig">TransportConfig</a>>,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The `Endpoint` allows establishing connections to other iroh nodes."><title>iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module endpoint</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a></span><h1>Module <span>endpoint</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1-2394">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> allows establishing connections to other iroh nodes.</p>
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The `Endpoint` allows establishing connections to other iroh nodes."><title>iroh::endpoint - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh/index.html">iroh</a><span class="version">0.32.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module endpoint</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate iroh</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a></span><h1>Module <span>endpoint</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh/endpoint.rs.html#1-2368">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> allows establishing connections to other iroh nodes.</p>
|
||||
<p>The <a href="struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> is the main API interface to manage a local iroh node. It allows
|
||||
connecting to and accepting connections from other nodes. See the <a href="../index.html" title="mod iroh">module docs</a> for
|
||||
more details on how iroh connections work.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -882,7 +882,15 @@
|
||||
<a href="#881" id="881">881</a>
|
||||
<a href="#882" id="882">882</a>
|
||||
<a href="#883" id="883">883</a>
|
||||
<a href="#884" id="884">884</a></pre></div><pre class="rust"><code><span class="doccomment">//! Node address discovery.
|
||||
<a href="#884" id="884">884</a>
|
||||
<a href="#885" id="885">885</a>
|
||||
<a href="#886" id="886">886</a>
|
||||
<a href="#887" id="887">887</a>
|
||||
<a href="#888" id="888">888</a>
|
||||
<a href="#889" id="889">889</a>
|
||||
<a href="#890" id="890">890</a>
|
||||
<a href="#891" id="891">891</a>
|
||||
<a href="#892" id="892">892</a></pre></div><pre class="rust"><code><span class="doccomment">//! Node address discovery.
|
||||
//!
|
||||
//! To connect to an iroh node a [`NodeAddr`] is needed, which may contain a
|
||||
//! [`RelayUrl`] or one or more *direct addresses* in addition to the [`NodeId`].
|
||||
@@ -1282,15 +1290,15 @@
|
||||
}
|
||||
};
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>on_first_tx = <span class="prelude-val">Some</span>(on_first_tx);
|
||||
<span class="macro">debug!</span>(<span class="string">"discovery: start"</span>);
|
||||
<span class="macro">debug!</span>(<span class="string">"starting"</span>);
|
||||
<span class="kw">loop </span>{
|
||||
<span class="kw">match </span>stream.next().<span class="kw">await </span>{
|
||||
<span class="prelude-val">Some</span>(<span class="prelude-val">Ok</span>(r)) => {
|
||||
<span class="kw">if </span>r.node_addr.is_empty() {
|
||||
<span class="macro">debug!</span>(provenance = %r.provenance, <span class="string">"discovery: empty address found"</span>);
|
||||
<span class="macro">debug!</span>(provenance = %r.provenance, <span class="string">"empty address found"</span>);
|
||||
<span class="kw">continue</span>;
|
||||
}
|
||||
<span class="macro">debug!</span>(provenance = %r.provenance, addr = <span class="question-mark">?</span>r.node_addr, <span class="string">"discovery: new address found"</span>);
|
||||
<span class="macro">debug!</span>(provenance = %r.provenance, addr = <span class="question-mark">?</span>r.node_addr, <span class="string">"new address found"</span>);
|
||||
ep.add_node_addr_with_source(r.node_addr, r.provenance).ok();
|
||||
<span class="kw">if let </span><span class="prelude-val">Some</span>(tx) = on_first_tx.take() {
|
||||
tx.send(<span class="prelude-val">Ok</span>(())).ok();
|
||||
@@ -1327,13 +1335,14 @@
|
||||
|
||||
<span class="kw">use </span>anyhow::Context;
|
||||
<span class="kw">use </span>iroh_base::SecretKey;
|
||||
<span class="kw">use </span>quinn::{IdleTimeout, TransportConfig};
|
||||
<span class="kw">use </span>rand::Rng;
|
||||
<span class="kw">use </span>testresult::TestResult;
|
||||
<span class="kw">use </span>tokio_util::task::AbortOnDropHandle;
|
||||
<span class="kw">use </span>tracing_test::traced_test;
|
||||
|
||||
<span class="kw">use super</span>::<span class="kw-2">*</span>;
|
||||
<span class="kw">use </span><span class="kw">crate</span>::RelayMode;
|
||||
<span class="kw">use crate</span>::{endpoint::ConnectOptions, RelayMode};
|
||||
|
||||
<span class="kw">type </span>InfoStore = HashMap<NodeId, (<span class="prelude-ty">Option</span><RelayUrl>, BTreeSet<SocketAddr>, u64)>;
|
||||
|
||||
@@ -1391,15 +1400,14 @@
|
||||
endpoint: Endpoint,
|
||||
node_id: NodeId,
|
||||
) -> <span class="prelude-ty">Option</span><BoxStream<<span class="prelude-ty">Result</span><DiscoveryItem>>> {
|
||||
<span class="kw">let </span>addr_info = <span class="kw">match </span><span class="self">self</span>.resolve_wrong {
|
||||
<span class="bool-val">false </span>=> <span class="self">self</span>.shared.nodes.lock().unwrap().get(<span class="kw-2">&</span>node_id).cloned(),
|
||||
<span class="bool-val">true </span>=> {
|
||||
<span class="kw">let </span>ts = system_time_now() - <span class="number">100_000</span>;
|
||||
<span class="kw">let </span>port: u16 = rand::thread_rng().gen_range(<span class="number">10_000</span>..<span class="number">20_000</span>);
|
||||
<span class="comment">// "240.0.0.0/4" is reserved and unreachable
|
||||
</span><span class="kw">let </span>addr: SocketAddr = <span class="macro">format!</span>(<span class="string">"240.0.0.1:{port}"</span>).parse().unwrap();
|
||||
<span class="prelude-val">Some</span>((<span class="prelude-val">None</span>, BTreeSet::from([addr]), ts))
|
||||
}
|
||||
<span class="kw">let </span>addr_info = <span class="kw">if </span><span class="self">self</span>.resolve_wrong {
|
||||
<span class="kw">let </span>ts = system_time_now() - <span class="number">100_000</span>;
|
||||
<span class="kw">let </span>port: u16 = rand::thread_rng().gen_range(<span class="number">10_000</span>..<span class="number">20_000</span>);
|
||||
<span class="comment">// "240.0.0.0/4" is reserved and unreachable
|
||||
</span><span class="kw">let </span>addr: SocketAddr = <span class="macro">format!</span>(<span class="string">"240.0.0.1:{port}"</span>).parse().unwrap();
|
||||
<span class="prelude-val">Some</span>((<span class="prelude-val">None</span>, BTreeSet::from([addr]), ts))
|
||||
} <span class="kw">else </span>{
|
||||
<span class="self">self</span>.shared.nodes.lock().unwrap().get(<span class="kw-2">&</span>node_id).cloned()
|
||||
};
|
||||
<span class="kw">let </span>stream = <span class="kw">match </span>addr_info {
|
||||
<span class="prelude-val">Some</span>((url, addrs, ts)) => {
|
||||
@@ -1520,10 +1528,9 @@
|
||||
disco.add(disco3);
|
||||
new_endpoint(secret, disco).<span class="kw">await
|
||||
</span>};
|
||||
<span class="kw">let </span>ep1_addr = NodeAddr::new(ep1.node_id());
|
||||
<span class="comment">// wait for out address to be updated and thus published at least once
|
||||
</span>ep1.node_addr().<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="kw">let </span>_conn = ep2.connect(ep1_addr, TEST_ALPN).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="kw">let </span>_conn = ep2.connect(ep1.node_id(), TEST_ALPN).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}
|
||||
|
||||
@@ -1543,11 +1550,20 @@
|
||||
<span class="kw">let </span>disco = ConcurrentDiscovery::from_services(<span class="macro">vec!</span>[Box::new(disco1)]);
|
||||
new_endpoint(secret, disco).<span class="kw">await
|
||||
</span>};
|
||||
<span class="kw">let </span>ep1_addr = NodeAddr::new(ep1.node_id());
|
||||
<span class="comment">// wait for out address to be updated and thus published at least once
|
||||
</span>ep1.node_addr().<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
<span class="kw">let </span>res = ep2.connect(ep1_addr, TEST_ALPN).<span class="kw">await</span>;
|
||||
<span class="macro">assert!</span>(res.is_err());
|
||||
|
||||
<span class="comment">// 10x faster test via a 3s idle timeout instead of the 30s default
|
||||
</span><span class="kw">let </span><span class="kw-2">mut </span>config = TransportConfig::default();
|
||||
config.keep_alive_interval(<span class="prelude-val">Some</span>(Duration::from_secs(<span class="number">1</span>)));
|
||||
config.max_idle_timeout(<span class="prelude-val">Some</span>(IdleTimeout::try_from(Duration::from_secs(<span class="number">3</span>))<span class="question-mark">?</span>));
|
||||
<span class="kw">let </span>opts = ConnectOptions::new().with_transport_config(Arc::new(config));
|
||||
|
||||
<span class="kw">let </span>res = ep2
|
||||
.connect_with_opts(ep1.node_id(), TEST_ALPN, opts)
|
||||
.<span class="kw">await</span><span class="question-mark">? </span><span class="comment">// -> Connecting works
|
||||
</span>.<span class="kw">await</span>; <span class="comment">// -> Connection is expected to fail
|
||||
</span><span class="macro">assert!</span>(res.is_err());
|
||||
<span class="prelude-val">Ok</span>(())
|
||||
}
|
||||
|
||||
|
||||
@@ -2366,33 +2366,7 @@
|
||||
<a href="#2365" id="2365">2365</a>
|
||||
<a href="#2366" id="2366">2366</a>
|
||||
<a href="#2367" id="2367">2367</a>
|
||||
<a href="#2368" id="2368">2368</a>
|
||||
<a href="#2369" id="2369">2369</a>
|
||||
<a href="#2370" id="2370">2370</a>
|
||||
<a href="#2371" id="2371">2371</a>
|
||||
<a href="#2372" id="2372">2372</a>
|
||||
<a href="#2373" id="2373">2373</a>
|
||||
<a href="#2374" id="2374">2374</a>
|
||||
<a href="#2375" id="2375">2375</a>
|
||||
<a href="#2376" id="2376">2376</a>
|
||||
<a href="#2377" id="2377">2377</a>
|
||||
<a href="#2378" id="2378">2378</a>
|
||||
<a href="#2379" id="2379">2379</a>
|
||||
<a href="#2380" id="2380">2380</a>
|
||||
<a href="#2381" id="2381">2381</a>
|
||||
<a href="#2382" id="2382">2382</a>
|
||||
<a href="#2383" id="2383">2383</a>
|
||||
<a href="#2384" id="2384">2384</a>
|
||||
<a href="#2385" id="2385">2385</a>
|
||||
<a href="#2386" id="2386">2386</a>
|
||||
<a href="#2387" id="2387">2387</a>
|
||||
<a href="#2388" id="2388">2388</a>
|
||||
<a href="#2389" id="2389">2389</a>
|
||||
<a href="#2390" id="2390">2390</a>
|
||||
<a href="#2391" id="2391">2391</a>
|
||||
<a href="#2392" id="2392">2392</a>
|
||||
<a href="#2393" id="2393">2393</a>
|
||||
<a href="#2394" id="2394">2394</a></pre></div><pre class="rust"><code><span class="doccomment">//! The [`Endpoint`] allows establishing connections to other iroh nodes.
|
||||
<a href="#2368" id="2368">2368</a></pre></div><pre class="rust"><code><span class="doccomment">//! The [`Endpoint`] allows establishing connections to other iroh nodes.
|
||||
//!
|
||||
//! The [`Endpoint`] is the main API interface to manage a local iroh node. It allows
|
||||
//! connecting to and accepting connections from other nodes. See the [module docs] for
|
||||
@@ -2416,6 +2390,7 @@
|
||||
};
|
||||
|
||||
<span class="kw">use </span>anyhow::{bail, Context, <span class="prelude-ty">Result</span>};
|
||||
<span class="kw">use </span>data_encoding::BASE32_DNSSEC;
|
||||
<span class="kw">use </span>iroh_base::{NodeAddr, NodeId, RelayUrl, SecretKey};
|
||||
<span class="kw">use </span>iroh_relay::RelayMap;
|
||||
<span class="kw">use </span>n0_future::time::Duration;
|
||||
@@ -2441,7 +2416,7 @@
|
||||
ConnectionClose, ConnectionError, ConnectionStats, MtuDiscoveryConfig, OpenBi, OpenUni,
|
||||
ReadDatagram, ReadError, ReadExactError, ReadToEndError, RecvStream, ResetError, RetryError,
|
||||
SendDatagramError, SendStream, ServerConfig, StoppedError, StreamId, TransportConfig, VarInt,
|
||||
WeakConnectionHandle, WriteError, ZeroRttAccepted,
|
||||
WeakConnectionHandle, WriteError,
|
||||
};
|
||||
<span class="kw">pub use </span>quinn_proto::{
|
||||
congestion::{Controller, ControllerFactory},
|
||||
@@ -2939,80 +2914,16 @@
|
||||
<span class="macro">trace!</span>(<span class="string">"created magicsock"</span>);
|
||||
<span class="macro">debug!</span>(version = <span class="macro">env!</span>(<span class="string">"CARGO_PKG_VERSION"</span>), <span class="string">"iroh Endpoint created"</span>);
|
||||
|
||||
<span class="attr">#[derive(Debug, Default)]
|
||||
</span><span class="kw">struct </span>SessionStore {
|
||||
session_values: std::sync::Mutex<
|
||||
std::collections::HashMap<
|
||||
webpki::types::ServerName<<span class="lifetime">'static</span>>,
|
||||
rustls::client::Tls13ClientSessionValue,
|
||||
>,
|
||||
>,
|
||||
kx_hints: std::sync::Mutex<
|
||||
std::collections::HashMap<webpki::types::ServerName<<span class="lifetime">'static</span>>, rustls::NamedGroup>,
|
||||
>,
|
||||
}
|
||||
|
||||
<span class="kw">impl </span>rustls::client::ClientSessionStore <span class="kw">for </span>SessionStore {
|
||||
<span class="kw">fn </span>set_kx_hint(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
server_name: webpki::types::ServerName<<span class="lifetime">'static</span>>,
|
||||
group: rustls::NamedGroup,
|
||||
) {
|
||||
<span class="macro">tracing::warn!</span>(<span class="question-mark">?</span>server_name, <span class="question-mark">?</span>group, <span class="string">"set_kx_hint"</span>);
|
||||
<span class="self">self</span>.kx_hints.lock().unwrap().insert(server_name, group);
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>kx_hint(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
server_name: <span class="kw-2">&</span>webpki::types::ServerName<<span class="lifetime">'_</span>>,
|
||||
) -> <span class="prelude-ty">Option</span><rustls::NamedGroup> {
|
||||
<span class="macro">tracing::warn!</span>(<span class="question-mark">?</span>server_name, <span class="string">"kx_hint"</span>);
|
||||
<span class="self">self</span>.kx_hints.lock().unwrap().get(server_name).cloned()
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>set_tls12_session(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
_server_name: webpki::types::ServerName<<span class="lifetime">'static</span>>,
|
||||
_value: rustls::client::Tls12ClientSessionValue,
|
||||
) {
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>tls12_session(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
_server_name: <span class="kw-2">&</span>webpki::types::ServerName<<span class="lifetime">'_</span>>,
|
||||
) -> <span class="prelude-ty">Option</span><rustls::client::Tls12ClientSessionValue> {
|
||||
<span class="prelude-val">None
|
||||
</span>}
|
||||
|
||||
<span class="kw">fn </span>remove_tls12_session(<span class="kw-2">&</span><span class="self">self</span>, _server_name: <span class="kw-2">&</span>webpki::types::ServerName<<span class="lifetime">'static</span>>) {}
|
||||
|
||||
<span class="kw">fn </span>insert_tls13_ticket(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
server_name: webpki::types::ServerName<<span class="lifetime">'static</span>>,
|
||||
value: rustls::client::Tls13ClientSessionValue,
|
||||
) {
|
||||
<span class="macro">tracing::warn!</span>(<span class="question-mark">?</span>server_name, <span class="question-mark">?</span>value, <span class="string">"insert_tls13_ticket"</span>);
|
||||
<span class="self">self</span>.session_values
|
||||
.lock()
|
||||
.unwrap()
|
||||
.insert(server_name, value);
|
||||
}
|
||||
|
||||
<span class="kw">fn </span>take_tls13_ticket(
|
||||
<span class="kw-2">&</span><span class="self">self</span>,
|
||||
server_name: <span class="kw-2">&</span>webpki::types::ServerName<<span class="lifetime">'static</span>>,
|
||||
) -> <span class="prelude-ty">Option</span><rustls::client::Tls13ClientSessionValue> {
|
||||
<span class="macro">tracing::warn!</span>(<span class="question-mark">?</span>server_name, <span class="string">"take_tls13_ticket"</span>);
|
||||
<span class="self">self</span>.session_values.lock().unwrap().remove(server_name)
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">let </span>session_store = SessionStore::default();
|
||||
<span class="kw">let </span>ep = <span class="self">Self </span>{
|
||||
msock: msock.clone(),
|
||||
rtt_actor: Arc::new(rtt_actor::RttHandle::new()),
|
||||
static_config: Arc::new(static_config),
|
||||
session_store: Arc::new(session_store),
|
||||
<span class="comment">// 8 tickets per remote endpoint, 32 different endpoints
|
||||
// ~200 bytes per session + certificates (which are ~387 bytes)
|
||||
// So 8 * 32 * (200 + 387) = 150.272 bytes, assuming pointers to certificates
|
||||
// are never aliased pointers (they're Arc'ed).
|
||||
// I think 150KB is an acceptable default upper limit for such a cache.
|
||||
</span>session_store: Arc::new(rustls::client::ClientSessionMemoryCache::new(<span class="number">8 </span>* <span class="number">32</span>)),
|
||||
};
|
||||
<span class="prelude-val">Ok</span>(ep)
|
||||
}
|
||||
@@ -3149,16 +3060,17 @@
|
||||
client_config
|
||||
};
|
||||
|
||||
<span class="comment">// TODO: We'd eventually want to replace "localhost" with something that makes more sense.
|
||||
</span><span class="kw">let </span>connect =
|
||||
<span class="kw">let </span>server_name = <span class="kw-2">&</span><span class="macro">format!</span>(<span class="string">"{}.iroh.invalid"</span>, BASE32_DNSSEC.encode(node_id.as_bytes()));
|
||||
<span class="kw">let </span>connect =
|
||||
<span class="self">self</span>.msock
|
||||
.endpoint()
|
||||
.connect_with(client_config, addr.socket_addr(), <span class="string">"localhost"</span>)<span class="question-mark">?</span>;
|
||||
.connect_with(client_config, addr.socket_addr(), server_name)<span class="question-mark">?</span>;
|
||||
|
||||
<span class="prelude-val">Ok</span>(Connecting {
|
||||
inner: connect,
|
||||
ep: <span class="self">self</span>.clone(),
|
||||
remote_node_id: <span class="prelude-val">Some</span>(node_id),
|
||||
_discovery_drop_guard,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3624,6 +3536,7 @@
|
||||
inner: conn,
|
||||
ep: <span class="self">self</span>.ep,
|
||||
remote_node_id: <span class="prelude-val">None</span>,
|
||||
_discovery_drop_guard: <span class="prelude-val">None</span>,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3642,6 +3555,7 @@
|
||||
inner: conn,
|
||||
ep: <span class="self">self</span>.ep,
|
||||
remote_node_id: <span class="prelude-val">None</span>,
|
||||
_discovery_drop_guard: <span class="prelude-val">None</span>,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3725,13 +3639,16 @@
|
||||
}
|
||||
|
||||
<span class="doccomment">/// In-progress connection attempt future
|
||||
</span><span class="attr">#[derive(Debug)]
|
||||
</span><span class="attr">#[derive(derive_more::Debug)]
|
||||
#[pin_project]
|
||||
</span><span class="kw">pub struct </span>Connecting {
|
||||
<span class="attr">#[pin]
|
||||
</span>inner: quinn::Connecting,
|
||||
ep: Endpoint,
|
||||
remote_node_id: <span class="prelude-ty">Option</span><NodeId>,
|
||||
<span class="doccomment">/// We run discovery as long as we haven't established a connection yet.
|
||||
</span><span class="attr">#[debug(<span class="string">"Option<DiscoveryTask>"</span>)]
|
||||
</span>_discovery_drop_guard: <span class="prelude-ty">Option</span><DiscoveryTask>,
|
||||
}
|
||||
|
||||
<span class="kw">impl </span>Connecting {
|
||||
@@ -3740,6 +3657,10 @@
|
||||
<span class="kw">match </span><span class="self">self</span>.inner.into_0rtt() {
|
||||
<span class="prelude-val">Ok</span>((inner, zrtt_accepted)) => {
|
||||
<span class="kw">let </span>conn = Connection { inner };
|
||||
<span class="kw">let </span>zrtt_accepted = ZeroRttAccepted {
|
||||
inner: zrtt_accepted,
|
||||
_discovery_drop_guard: <span class="self">self</span>._discovery_drop_guard,
|
||||
};
|
||||
try_send_rtt_msg(<span class="kw-2">&</span>conn, <span class="kw-2">&</span><span class="self">self</span>.ep, <span class="self">self</span>.remote_node_id);
|
||||
<span class="prelude-val">Ok</span>((conn, zrtt_accepted))
|
||||
}
|
||||
@@ -3747,6 +3668,7 @@
|
||||
inner,
|
||||
ep: <span class="self">self</span>.ep,
|
||||
remote_node_id: <span class="self">self</span>.remote_node_id,
|
||||
_discovery_drop_guard: <span class="self">self</span>._discovery_drop_guard,
|
||||
}),
|
||||
}
|
||||
}
|
||||
@@ -3788,6 +3710,31 @@
|
||||
}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// Future that completes when a connection is fully established
|
||||
///
|
||||
/// For clients, the resulting value indicates if 0-RTT was accepted. For servers, the resulting
|
||||
/// value is meaningless.
|
||||
</span><span class="attr">#[derive(derive_more::Debug)]
|
||||
#[debug(<span class="string">"ZeroRttAccepted"</span>)]
|
||||
</span><span class="kw">pub struct </span>ZeroRttAccepted {
|
||||
inner: quinn::ZeroRttAccepted,
|
||||
<span class="doccomment">/// When we call `Connecting::into_0rtt`, we don't want to stop discovery, so we transfer the task
|
||||
/// to this future.
|
||||
/// When `quinn::ZeroRttAccepted` resolves, we've successfully received data from the remote.
|
||||
/// Thus, that's the right time to drop discovery to preserve the behaviour similar to
|
||||
/// `Connecting` -> `Connection` without 0-RTT.
|
||||
/// Should we eventually decide to keep the discovery task alive for the duration of the whole
|
||||
/// `Connection`, then this task should be transferred to the `Connection` instead of here.
|
||||
</span>_discovery_drop_guard: <span class="prelude-ty">Option</span><DiscoveryTask>,
|
||||
}
|
||||
|
||||
<span class="kw">impl </span>Future <span class="kw">for </span>ZeroRttAccepted {
|
||||
<span class="kw">type </span>Output = bool;
|
||||
<span class="kw">fn </span>poll(<span class="kw-2">mut </span><span class="self">self</span>: Pin<<span class="kw-2">&mut </span><span class="self">Self</span>>, cx: <span class="kw-2">&mut </span>std::task::Context<<span class="lifetime">'_</span>>) -> Poll<<span class="self">Self</span>::Output> {
|
||||
Pin::new(<span class="kw-2">&mut </span><span class="self">self</span>.inner).poll(cx)
|
||||
}
|
||||
}
|
||||
|
||||
<span class="doccomment">/// A QUIC connection.
|
||||
///
|
||||
/// If all references to a connection (including every clone of the Connection handle,
|
||||
@@ -4773,7 +4720,8 @@
|
||||
|
||||
connect_client_expect_0rtt_err(<span class="kw-2">&</span>client, server.node_addr().<span class="kw">await</span><span class="question-mark">?</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
|
||||
<span class="comment">// spawning another server should not hinder us from establishing a 0rtt connection later:
|
||||
<span class="comment">// connecting with another endpoint should not interfere with our
|
||||
// TLS session ticket cache for the first endpoint:
|
||||
</span><span class="kw">let </span>another = spawn_server().<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
connect_client_expect_0rtt_err(<span class="kw-2">&</span>client, another.node_addr().<span class="kw">await</span><span class="question-mark">?</span>).<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
another.close().<span class="kw">await</span>;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,9 +1,9 @@
|
||||
(function() {
|
||||
var implementors = Object.fromEntries([["iroh",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/endpoint/struct.Accept.html\" title=\"struct iroh::endpoint::Accept\">Accept</a><'_>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/endpoint/struct.Connecting.html\" title=\"struct iroh::endpoint::Connecting\">Connecting</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/endpoint/struct.IncomingFuture.html\" title=\"struct iroh::endpoint::IncomingFuture\">IncomingFuture</a>"],["impl<T: <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/watchable/struct.WatchInitializedFut.html\" title=\"struct iroh::watchable::WatchInitializedFut\">WatchInitializedFut</a><'_, T>"],["impl<T: <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/watchable/struct.WatchNextFut.html\" title=\"struct iroh::watchable::WatchNextFut\">WatchNextFut</a><'_, T>"]]]]);
|
||||
var implementors = Object.fromEntries([["iroh",[["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/endpoint/struct.Accept.html\" title=\"struct iroh::endpoint::Accept\">Accept</a><'_>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/endpoint/struct.Connecting.html\" title=\"struct iroh::endpoint::Connecting\">Connecting</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/endpoint/struct.IncomingFuture.html\" title=\"struct iroh::endpoint::IncomingFuture\">IncomingFuture</a>"],["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/endpoint/struct.ZeroRttAccepted.html\" title=\"struct iroh::endpoint::ZeroRttAccepted\">ZeroRttAccepted</a>"],["impl<T: <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/watchable/struct.WatchInitializedFut.html\" title=\"struct iroh::watchable::WatchInitializedFut\">WatchInitializedFut</a><'_, T>"],["impl<T: <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"iroh/watchable/struct.WatchNextFut.html\" title=\"struct iroh::watchable::WatchNextFut\">WatchNextFut</a><'_, T>"]]]]);
|
||||
if (window.register_implementors) {
|
||||
window.register_implementors(implementors);
|
||||
} else {
|
||||
window.pending_implementors = implementors;
|
||||
}
|
||||
})()
|
||||
//{"start":57,"fragment_lengths":[2086]}
|
||||
//{"start":57,"fragment_lengths":[2394]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user