From d2c6f9fc04c09f262ca0bd0a98c67cbec3425ff3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 2 Jan 2017 16:01:57 +0100 Subject: add an avoid upd6 option --- Generate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Generate b/Generate index 371ed15..0a328d3 100755 --- a/Generate +++ b/Generate @@ -288,6 +288,7 @@ $config['hosts'].each_pair{ |name, host| host['networks'][host['vpn_address']+"/32"] = host['groups'].join(',') host['pkcs12'] = true unless host.has_key?('pkcs12') host['ipv6'] = false unless host.has_key?('ipv6') + host['avoid_udp6'] = false unless host.has_key?('avoid_udp6') host['networks6'] = {} unless host['networks6'] if host['ipv6'] host['networks6'][host['vpn_address6']+"/128"] = host['groups'].join(',') @@ -680,7 +681,7 @@ hostlist.each{ |host| # conffile.puts "local %s"%[host['host_address']] #end if host_is_server - #conffile.puts "proto udp6" + conffile.puts "proto udp6" unless host['avoid_udp6'] conffile.puts "tls-server" conffile.puts "dh #{$NAMESPACE}.dh2048.pem" else -- cgit v1.2.3