MoqIrohDedicatedListenerConfig
A DEDICATED iroh listener identity for one input/output: its own key,
allow-list and relay mode on its own endpoint, instead of riding the
shared per-instance endpoint (the iroh bool). Advanced/multi-tenant —
most users want the shared endpoint. Note the default-closed policy
applies: relay_mode "default" with no allow-list refuses to start.
Field |
Type |
Repeated |
Description |
slot |
Pool slot (>= 1; 0 is reserved for the shared endpoint). Inputs/ outputs naming the same slot share the listener (first configuration wins; later mismatching configs are rejected). |
||
secret_key_file |
Identity key file (load-or-generate, hex, mode 0600) — a stable NodeId across restarts. Empty = fresh unpersisted identity per start. |
||
relay_mode |
"default" (relays + discovery) or "disabled" (direct paths only). |
||
allowed_peers |
✅ |
Verified remote NodeIds (64-char hex) allowed to connect. |
|
allow_any_peer |
|||
allowed_peers_file |
Path to an allow-list file (one hex NodeId per line, # comments). |
||
relay_urls |
✅ |
Self-hosted relay server URLs (https) — see IrohEndpointConfig.relay_urls for semantics. |