Skip to content

Commit 12447b5

Browse files
Update connecting/endpoint-hooks.mdx
Co-authored-by: Copilot <[email protected]>
1 parent 7a62f5c commit 12447b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connecting/endpoint-hooks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async fn main() -> n0_error::Result<()> {
8282
Hooks can be used to enforce policy. If a hook returns a rejection result, the connection is immediately aborted.
8383
The example below rejects all incoming connections after the handshake. Outgoing connections will still dial.
8484

85-
In real applications, you would inspect `ConnectionInfo` and reject connections by checking the connection's remote id or aLPN against authentication state in your app.
85+
In real applications, you would inspect `ConnectionInfo` and reject connections by checking the connection's remote id or ALPN against authentication state in your app.
8686

8787
```rust
8888
use iroh::endpoint::{AfterHandshakeOutcome, ConnectionInfo, Endpoint, EndpointHooks, Side};

0 commit comments

Comments
 (0)