kilo/pkg/mesh
Lucas Servén Marín d1948acd77
pkg/mesh: fix panic in graph
Commit 4d00bc56fe introduced a bug in the
Kilo graph generation logic. This commit used the WireGuard CIDR from
the topology struct as the graph title, however this field is nil
whenever the selected node is not a leader, causing the program to
panic.

This commit changes the meaning of the topology struct's wireGuardCIDR
field so that the field is always defined and the normalized value will
always be equal to the Kilo subnet CIDR. When the selected node is a
leader node, then the field's IP will be the IP allocated to the node
within the subnet. This effectively prevents the program from panicking.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
2021-03-25 02:59:54 +01:00
..
backend.go FEATURE: allow disabling private IPs 2021-03-13 23:33:18 +01:00
cni.go pkg/*: allow kgctl to compile for other OSes 2020-11-14 12:16:07 +01:00
discoverips.go Nodes without private IPs 2021-01-24 22:37:24 +01:00
graph.go pkg/mesh: fix panic in graph 2021-03-25 02:59:54 +01:00
ip_test.go pkg/mesh: correctly check 172.16/12 IP range 2021-03-06 00:50:48 +01:00
ip.go pkg/mesh: correctly check 172.16/12 IP range 2021-03-06 00:50:48 +01:00
mesh_test.go pkg/mesh,pkg/wireguard: allow DNS name endpoints 2020-02-22 17:17:13 +01:00
mesh.go pkg/mesh: fix panic in graph 2021-03-25 02:59:54 +01:00
routes_test.go Nodes without private IPs 2021-01-24 22:37:24 +01:00
routes.go pkg/iptables: reduce calls to iptables 2021-02-20 19:24:06 +01:00
topology_test.go pkg/mesh: fix panic in graph 2021-03-25 02:59:54 +01:00
topology.go pkg/mesh: fix panic in graph 2021-03-25 02:59:54 +01:00