lokinet/llarp/net/interface_info.cpp

16 lines
311 B
C++
Raw Normal View History

2022-10-06 17:50:05 +00:00
#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");
2022-10-06 17:50:05 +00:00
}
} // namespace llarp::net