kilo/pkg/wireguard
Julien Viard de Galbert 2ac000c68a
Nat to nat (#146)
* wireguard: export an Endpoint comparison method

* Record discovered endpoints in node

* Synchronize DiscoveredEndpoints in k8s backend

* Add discoveredEndpointsAreEqual

* Handle discovered Endpoints in topology to enable NAT 2 NAT

* Refactor to use Endpoint.Equal

Compare IP first by default and compare DNS name first when we know the Endpoint was resolved.

* Drop the shallow copies of nodes and peers

Now that updateNATEndpoints was updated to discoverNATEndpoints and that
the endpoints are overridden by topology instead of mutating the nodes and
peers object, we can safely drop this copy.
2021-04-21 19:47:29 +02:00
..
conf_test.go Nat to nat (#146) 2021-04-21 19:47:29 +02:00
conf.go Nat to nat (#146) 2021-04-21 19:47:29 +02:00
wireguard.go pkg/*: allow kgctl to compile for other OSes 2020-11-14 12:16:07 +01:00