diff options
-rwxr-xr-x | Generate | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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" |