Gogogogogogogo

This commit is contained in:
Adam Ierymenko 2019-09-23 15:18:52 -07:00
commit b6175bd408
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
12 changed files with 583 additions and 150 deletions

View file

@ -13,13 +13,14 @@
package zerotier
import "net"
// Root describes a root server used to find and establish communication with other nodes.
type Root struct {
DNSName string
Identity *Identity
Addresses []net.Addr
Addresses []InetAddress
Preferred bool
Online bool
}
// Static returns true if this is a static root
func (r *Root) Static() bool { return len(r.DNSName) == 0 }