diff --git a/pkg/mesh/mesh.go b/pkg/mesh/mesh.go index 00f36c0..22c54e1 100644 --- a/pkg/mesh/mesh.go +++ b/pkg/mesh/mesh.go @@ -516,7 +516,9 @@ func (m *Mesh) applyTopology() { break } } - ipRules = append(ipRules, m.enc.Rules(cidrs)...) + + ipRules = append(m.enc.Rules(cidrs), ipRules...) + // If we are handling local routes, ensure the local // tunnel has an IP address. if err := m.enc.Set(oneAddressCIDR(newAllocator(*nodes[m.hostname].Subnet).next().IP)); err != nil {