diff options
author | Peter Palfrader <peter@palfrader.org> | 2017-01-02 10:47:14 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2017-01-02 10:47:14 +0100 |
commit | a58a3b5980c350194c7013b56d1de590e37bc24e (patch) | |
tree | 206e0cf615be59d9309570d3882755c8ecae8d47 /Generate | |
parent | ec242c3fa1e9fcca58d4e8d2fe1b311cd51c2653 (diff) |
Do not bind on specific IP addresses so we can also tunnel over ipv6
Diffstat (limited to 'Generate')
-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" |