From a58a3b5980c350194c7013b56d1de590e37bc24e Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 2 Jan 2017 10:47:14 +0100 Subject: Do not bind on specific IP addresses so we can also tunnel over ipv6 --- Generate | 15 ++++++++++----- 1 file 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" -- cgit v1.2.3