unbound: bugfix add_local_fqdn with empty ULA
authorEric Luehrsen <ericluehrsen@hotmail.com>
Sat, 25 Feb 2017 18:49:45 +0000 (13:49 -0500)
committerEric Luehrsen <ericluehrsen@hotmail.com>
Thu, 2 Mar 2017 05:48:24 +0000 (00:48 -0500)
Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
net/unbound/files/unbound.sh

index 44eeb6fccd07de8df4637e1de6faeb01540685b5..24964d0b0a675480fc9270727301e07696f89ce6 100644 (file)
@@ -107,6 +107,12 @@ create_interface_dns() {
   if_fqdn="$ifdashname.$host_fqdn"
 
 
+  if [ -z "${ulaprefix%%:/*}" ] ; then
+    # Nonsense so this option isn't globbed below
+    ulaprefix="fdno:such:addr::/48"
+  fi
+
+
   if [ "$ignore" -gt 0 ] ; then
     mode="$UNBOUND_D_WAN_FQDN"