Expand description
Package relay
implements a revised version of the Designated Encrypted Relay for Packets (DERP)
protocol written by Tailscale.
The relay routes packets to clients using curve25519 keys as addresses.
The relay is used to proxy encrypted QUIC packets through the relay servers when
a direct path cannot be found or opened. The relay is a last resort. If both sides
have very aggressive NATs, or firewalls, or no IPv6, we use the relay connection.
Based on tailscale/derp/derp.go
Modules§
- HTTP-specific constants for the relay server and client.
- server
iroh-relay
A fully-fledged iroh-relay server over HTTP or HTTPS.
Structs§
- An HTTP Relay client.
- Build a Client.
- Receiving end of a
Client
. - A connection to a relay server.
- Configuration of all the relay servers that can be used.
- Information on a specific relay server.
- A URL identifying a relay server.
Enums§
- Possible connection errors on the
Client
- The type of message received by the
Conn
from a relay server. - Configuration of the relay servers for an
Endpoint
.
Constants§
- ENV_
FORCE_ STAGING_ RELAYS Non- test
Environment variable to force the use of staging relays. - The maximum size of a packet sent over relay. (This only includes the data bytes visible to magicsock, not including its on-wire framing overhead)
Functions§
- Returns
true
if the use of staging relays is forced.