mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-11 07:10:36 +00:00
bc071231c8
Android, in particular, has problems with fmt's built-in variant handling for this type for some reason.
16 lines
311 B
C++
16 lines
311 B
C++
#include "interface_info.hpp"
|
|
|
|
namespace llarp::net
|
|
{
|
|
std::string
|
|
InterfaceInfo::ToString() const
|
|
{
|
|
return fmt::format(
|
|
"{}[i={}; addrs={}; gw={}]",
|
|
name,
|
|
index,
|
|
fmt::join(addrs, ","),
|
|
gateway ? net::ToString(*gateway) : "none");
|
|
}
|
|
} // namespace llarp::net
|