mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
More plumbing
This commit is contained in:
parent
d1b780c7be
commit
b9911d0db7
18 changed files with 384 additions and 114 deletions
|
@ -24,7 +24,7 @@ type Route struct {
|
|||
Target net.IPNet
|
||||
|
||||
// Via is how to reach this target (null/empty if the target IP range is local to this virtual LAN)
|
||||
Via net.IP
|
||||
Via *net.IP
|
||||
|
||||
// Route flags (currently unused, always 0)
|
||||
Flags uint16
|
||||
|
@ -35,7 +35,7 @@ type Route struct {
|
|||
|
||||
// String returns a string representation of this route
|
||||
func (r *Route) String() string {
|
||||
if len(r.Via) == 0 {
|
||||
if r.Via != nil {
|
||||
return r.Target.String() + "->LAN"
|
||||
}
|
||||
return r.Target.String() + "->" + r.Via.String()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue