summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xGenerate15
1 files changed, 10 insertions, 5 deletions
diff --git a/Generate b/Generate
index 11a63a3..35fa9df 100755
--- a/Generate
+++ b/Generate
@@ -666,12 +666,17 @@ hostlist.each{ |host|
conffile.puts "rport #{host['inet_port'][ peer['name'] ]['remote']}"
end
conffile.puts "lport #{host['inet_port'][ peer['name'] ]['local']}" unless host['accepts'].nil?
- conffile.puts "nobind" if host['accepts'].nil?
- if host['bind_address']
- conffile.puts "local %s"%[host['bind_address']]
- elsif host['host_address']
- conffile.puts "local %s"%[host['host_address']]
+ conffile.puts "proto udp6"
+ if host['accepts'].nil?
+ conffile.puts "nobind"
+ else
+ conffile.puts "multihome"
end
+ #if host['bind_address']
+ # conffile.puts "local %s"%[host['bind_address']]
+ #elsif host['host_address']
+ # conffile.puts "local %s"%[host['host_address']]
+ #end
if host_is_server
conffile.puts "tls-server"
conffile.puts "dh #{$NAMESPACE}.dh2048.pem"