summaryrefslogtreecommitdiff
path: root/Generate
diff options
context:
space:
mode:
Diffstat (limited to 'Generate')
-rwxr-xr-xGenerate3
1 files changed, 2 insertions, 1 deletions
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