summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xretiolum/scripts/tinc_setup/new_install.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/retiolum/scripts/tinc_setup/new_install.sh b/retiolum/scripts/tinc_setup/new_install.sh
index b48649ec..cd2fdde1 100755
--- a/retiolum/scripts/tinc_setup/new_install.sh
+++ b/retiolum/scripts/tinc_setup/new_install.sh
@@ -43,6 +43,11 @@ main(){
RAND4=1
RAND6=1
+ if $(echo $HOSN | grep -q -); then
+ echo 'invalid hostname, - not allowed'
+ exit 1
+ fi
+
if [ $IP4 -eq 0 ]; then
RAND4=1