CConnman::PrivateBroadcast::ProxyForIPv4or6

Check if private broadcast can be done to IPv4 or IPv6 peers and if so via which proxy. If private broadcast connections should not be opened to IPv4 or IPv6, then this will return an empty optional.

Synopsis

Declared in <net.h>

std::optional<Proxy>
ProxyForIPv4or6() const;

Return Value

the proxy to use, or an empty optional if IPv4/IPv6 private broadcast is disabled.