filter invalid/reserved TLDs (a beginning: Zeroconf)
authormirabilos <t.glaser@tarent.de>
Fri, 27 Sep 2019 12:45:30 +0000 (14:45 +0200)
committermirabilos <mirabilos@evolvis.org>
Fri, 27 Sep 2019 12:45:30 +0000 (14:45 +0200)
posix/mkrpi3b+img.sh

index 1e1d5aa..66fed71 100644 (file)
@@ -494,6 +494,11 @@ and OVERWRITE ALL DATA with no chance of recovery?" 14 72
                                        s=3; break ;;
                                esac
                        done
+                       case $myfqdn in
+                       (*.local)
+                               w --msgbox 'The given hostname uses the TLD reserved for mDNS!' 8 72
+                               s=3 ;;
+                       esac
                        # s is now 3=redo (msgbox shown) or 4=go on
                fi
                ;;