zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.57k stars 1.71k forks source link

get link status with other nodes via API (like zerotier-cli peers) #2404

Closed kohlersDagger closed 1 week ago

kohlersDagger commented 1 week ago

In the zerotier-cli peers command, I get a column called <link> and use DIRECT/RELAY to indicate whether the two nodes are directly connected to each other or not, but with http://localhost:9993/peer I can't get the information like DIRECT/RELAY or something like that. Can you please add this response field in subsequent versions of zerotier? Or is there any other way I can determine the link status?

laduke commented 1 week ago

I think it's just that the paths array is empty when it's relaying

kohlersDagger commented 1 week ago

I think it's just that the paths array is empty when it's relaying

you're concrete, this works for me. thanks a lot.