Crate reth_net_nat

Source
Expand description

Helpers for resolving the external IP.

§Feature Flags

  • serde (default): Enable serde support

Re-exports§

pub use net_if::NetInterfaceError;
pub use net_if::DEFAULT_NET_IF_NAME;

Modules§

net_if
IP resolution on non-host Docker network.

Structs§

ResolveNatInterval
With this type you can resolve the external public IP address on an interval basis.

Enums§

NatResolver
All builtin resolvers.
ParseNatResolverError
Error when parsing a NatResolver

Functions§

external_addr_with
Given a NatResolver attempts to produce an IP address (best effort).
external_ip
Attempts to produce an IP address with all builtin resolvers (best effort).