From a4d1497763e0a873a11f86fab87981ca99a3781a Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 18 Jan 2013 17:22:01 +0100 Subject: [PATCH] make it possible to have also interfaces like eth0.1 --- templates/host.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/host.erb b/templates/host.erb index 6adeacd..5f63c9a 100644 --- a/templates/host.erb +++ b/templates/host.erb @@ -1,4 +1,4 @@ -Address = <%= scope.lookupvar("::ipaddress_#{tinc_interface}") %> +Address = <%= scope.lookupvar("::ipaddress_#{tinc_interface.gsub('.','_')}") %> Port = <%= port %> Compression = <%= compression %> # 0=no,11=best lzo #