Merge pull request #287 from squat/respect_allowed_location_ips_for_peers
pkg/mesh: respect allowed location IPs in peers
This commit is contained in:
commit
e782d1be98
@ -371,7 +371,7 @@ func (t *Topology) PeerConf(name string) *wireguard.Conf {
|
|||||||
for _, s := range t.segments {
|
for _, s := range t.segments {
|
||||||
peer := wireguard.Peer{
|
peer := wireguard.Peer{
|
||||||
PeerConfig: wgtypes.PeerConfig{
|
PeerConfig: wgtypes.PeerConfig{
|
||||||
AllowedIPs: s.allowedIPs,
|
AllowedIPs: append(s.allowedIPs, s.allowedLocationIPs...),
|
||||||
PersistentKeepaliveInterval: pka,
|
PersistentKeepaliveInterval: pka,
|
||||||
PresharedKey: psk,
|
PresharedKey: psk,
|
||||||
PublicKey: s.key,
|
PublicKey: s.key,
|
||||||
|
Loading…
Reference in New Issue
Block a user