From: Tom Hughes Date: Mon, 14 Sep 2020 16:25:50 +0000 (+0100) Subject: Use correct network prefix for wireguard tunnels X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/31b02ecbee4c045c91999b2a47a6fd82f6a01a1a?hp=1339d82c4c3b3d37bd51172845ec2df9b77cad6a Use correct network prefix for wireguard tunnels --- diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 117a1e3f3..1a4dea993 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -226,7 +226,7 @@ if node[:networking][:wireguard][:enabled] next unless gateway[:networking][:wireguard] && gateway[:networking][:wireguard][:enabled] allowed_ips = gateway.interfaces(:role => :internal).map do |interface| - "#{interface[:network]}/#{interface[:metric]}" + "#{interface[:network]}/#{interface[:prefix]}" end node.default[:networking][:wireguard][:peers] << {