summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmodules/retiolum/bin/hosts2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/retiolum/bin/hosts b/modules/retiolum/bin/hosts
index b5b29430..e0a3d5fe 100755
--- a/modules/retiolum/bin/hosts
+++ b/modules/retiolum/bin/hosts
@@ -6,6 +6,6 @@ netname=${1-retiolum}
cd /etc/tinc/$netname/hosts
for i in `ls`; do
- sed -rn 's|^ *Subnet *= *([^ ]*) *$|\1\t'$i' '$i'.'$netname'|p' $i
+ sed -rn 's|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1\t'$i' '$i'.'$netname'|p' $i
done